Data Fields | |
| dwTrivialDataType | dataType |
| Data type of elements of the tensor. More... | |
| dwDNNTensorType | tensorType |
| Tensor type. More... | |
| dwDNNTensorLayout | tensorLayout |
| Tensor layout. More... | |
| bool | isGPUMapped |
| Indicates whether the memory allocation should be mapped to GPU. More... | |
| uint32_t | numDimensions |
| Number of dimensions of the tensor. More... | |
| uint32_t | dimensionSize [DW_DNN_TENSOR_MAX_DIMENSIONS] |
| Dimensions of the tensor to match the selected layout type. More... | |
| dwDNNTensorColorSpace | colorSpace |
| Color space of the data in the tensor. More... | |
| float32_t | dynamicRange [2] |
| Tensor scale value for reformatting fro m higher precision to lower precision. Values are min and max of dynamic range. More... | |
| dwDNNTensorColorSpace dwDNNTensorProperties::colorSpace |
| dwTrivialDataType dwDNNTensorProperties::dataType |
| uint32_t dwDNNTensorProperties::dimensionSize[DW_DNN_TENSOR_MAX_DIMENSIONS] |
Dimensions of the tensor to match the selected layout type.
The order of dimensions is defined by the dwDNNTensorLayout by reading the last suffix of DW_DNN_TENSOR_LAYOUT_... in reverse order. For example given DW_DNN_TENSOR_LAYOUT_NCHW, dimensionSize should be set to: [0] = width, [1] = height, [2] = number of channels and [3] = batch size.
dwDNNTensor_getLayoutView() to traverse the tensor in order to avoid having to compute the stride and offset for each dimension. | float32_t dwDNNTensorProperties::dynamicRange[2] |
| bool dwDNNTensorProperties::isGPUMapped |
| uint32_t dwDNNTensorProperties::numDimensions |
| dwDNNTensorLayout dwDNNTensorProperties::tensorLayout |
| dwDNNTensorType dwDNNTensorProperties::tensorType |