|
CUV
0.9.201304091348
|
contains infos about shape and stride on host and in the tensor data space. More...
#include <tensor.hpp>

Public Types | |
| typedef unsigned int | size_type |
| type of shapes of the tensor | |
| typedef int | index_type |
| type of indices in tensor | |
| typedef M | data_memory_space |
| this is where the data lies | |
Public Member Functions | |
| tensor_info () | |
| default constructor: does nothing | |
| size_type | size () |
| tensor_info (size_type s) | |
| construct with known shape | |
| void | resize (size_type s) |
| resize all memories | |
| tensor_info (const tensor_info< M, L > &o) | |
| copy-constructor | |
| template<class OM > | |
| tensor_info (const tensor_info< OM, L > &o) | |
| copy-construct from other memory space | |
Public Attributes | |
|
linear_memory< size_type, host_memory_space > | host_shape |
| shape stored in host memory | |
|
linear_memory< index_type, host_memory_space > | host_stride |
| strides stored in host memory | |
|
linear_memory< size_type, data_memory_space > | data_shape |
| shape stored in data memory | |
|
linear_memory< index_type, data_memory_space > | data_stride |
| strides stored in data memory | |
contains infos about shape and stride on host and in the tensor data space.
Definition at line 810 of file tensor.hpp.
|
inline |
Definition at line 828 of file tensor.hpp.
1.8.1.2