C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
TensorOffsetLayout Class Reference

Class for a data management component responsible for representation of data layout in the HomogenTensor. More...

Class Declaration

Deprecated:
This item will be removed in a future release.

Constructor & Destructor Documentation

TensorOffsetLayout ( const services::Collection< size_t > &  dims)
inline

Constructor for TensorOffsetLayout with default layout

Parameters
[in]dimsThe size of dimensions in the Tensor layout
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED TensorOffsetLayout ( const services::Collection< size_t > &  dims,
const services::Collection< size_t > &  offsets,
const services::Collection< size_t > &  indices 
)
inline

Constructor for TensorOffsetLayout with layout defined with offsets between adjacent elements in each dimension

Parameters
[in]dimsThe size of dimensions in the Tensor layout
[in]offsetsThe offsets between adjacent elements in each dimension
[in]indicesCollection with dimensions order
Deprecated:
This item will be removed in a future release.

Member Function Documentation

const services::Collection<size_t>& getIndices ( ) const
inline

Gets the dimensions order

Returns
Collection with dimensions order
const services::Collection<size_t>& getOffsets ( ) const
inline

Gets the offsets between adjacent elements in each dimension

Returns
Collection with offsets for each dimension
virtual int getSerializationTag ( ) const
inlinevirtual

Returns a serialization tag, a unique identifier of this class used in serialization

Returns
Serialization tag

Implements SerializationIface.

bool isLayout ( const TensorOffsetLayout layout) const
inline

Checks if layout is equal to given

Parameters
[in]layoutThe layout type to compare with
Returns
True or false
virtual services::Status shuffleDimensions ( const services::Collection< size_t > &  dimsOrder)
virtual

Sets the new order of existing dimension in the Tensor

Parameters
[in]dimsOrderCollection with the new indices for each dimension

Implements TensorLayoutIface.


The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.