template<ChannelCount CC, ChannelType CT>
class cvcore::Tensor< CL, CC, CT >
2D CL tensors.
- Template Parameters
-
| CC | channel count. |
| CT | channel type. |
Definition at line 755 of file Tensor.h.
|
| | Tensor ()=default |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T != CX>::type> |
| | Tensor (std::size_t length, bool isCPU=true) |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T == CX>::type> |
| | Tensor (std::size_t length, std::size_t channelCount, bool isCPU=true) |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T != CX>::type> |
| | Tensor (std::size_t length, DataType *dataPtr, bool isCPU=true) |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T == CX>::type> |
| | Tensor (std::size_t length, std::size_t channelCount, DataType *dataPtr, bool isCPU=true) |
| |
| std::size_t | getLength () const |
| | Get the length of the 2D tensor. More...
|
| |
| std::size_t | getChannelCount () const |
| | Get the channel count of the 2D tensor. More...
|
| |
| std::size_t | getStride (TensorDimension dim) const |
| | Get the stride of the 2D tensor. More...
|
| |
| std::size_t | getStride (int dimIdx) const |
| | Expose base getStride() function. More...
|
| |
| std::size_t | getStride (int dimIdx) const |
| | Get the stride of given dimension. More...
|
| |
| DataType * | getData () |
| | Get the raw data pointer to the 2D tensor. More...
|
| |
| const DataType * | getData () const |
| | Get the const raw data pointer to the 2D tensor. More...
|
| |
| void * | getData () const |
| | Get the raw data pointer to the Tensor. More...
|
| |
| int | getDimCount () const |
| | Get the dimension count of TensorBase. More...
|
| |
| std::size_t | getSize (int dimIdx) const |
| | Get the size of given dimension. More...
|
| |
| ChannelType | getType () const |
| | Get the ChannelType of the Tensor. More...
|
| |
| std::size_t | getDataSize () const |
| | Get the total size of the Tensor in bytes. More...
|
| |
| bool | isCPU () const |
| | Get the flag whether the Tensor is allocated in CPU or GPU. More...
|
| |
| bool | isOwning () const |
| | Get the flag whether the Tensor owns the data. More...
|
| |