Class for a data management component responsible for representation of data layout in the HomogenTensor.
More...
◆ TensorOffsetLayout() [1/2]
◆ TensorOffsetLayout() [2/2]
Constructor for TensorOffsetLayout with layout defined with offsets between adjacent elements in each dimension
- Parameters
-
[in] | dims | The size of dimensions in the Tensor layout |
[in] | offsets | The offsets between adjacent elements in each dimension |
[in] | indices | Collection with dimensions order |
◆ getIndices()
Gets the dimensions order
- Returns
- Collection with dimensions order
◆ getOffsets()
Gets the offsets between adjacent elements in each dimension
- Returns
- Collection with offsets for each dimension
◆ getSerializationTag()
virtual int getSerializationTag |
( |
| ) |
const |
|
inlinevirtual |
Returns a serialization tag, a unique identifier of this class used in serialization
- Returns
- Serialization tag
Implements SerializationIface.
◆ isLayout()
Checks if layout is equal to given
- Parameters
-
[in] | layout | The layout type to compare with |
- Returns
- True or false
◆ shuffleDimensions()
Sets the new order of existing dimension in the Tensor
- Parameters
-
[in] | dimsOrder | Collection with the new indices for each dimension |
Implements TensorLayoutIface.
The documentation for this class was generated from the following file: