Class with descriptor of the subtensor retrieved from Tensor getSubTensor function.
More...
template<typename DataType>
class daal::data_management::interface1::SubtensorDescriptor< DataType >
Base class that manages buffer memory for read/write operations required by tensors.
- Deprecated:
- This item will be removed in a future release.
Constructor for an empty subtensor descriptor
size_t* getFixedDimNums |
( |
| ) |
const |
|
inline |
Gets values at which dimensions are fixed
- Returns
- An array of values
size_t getFixedDims |
( |
| ) |
const |
|
inline |
Gets the number of first dimension with fixed values
- Returns
- The number of first dimension with fixed values
bool getInplaceFlag |
( |
| ) |
const |
|
inline |
Returns subtensor inplace flag
- Returns
- Inplace flag
Returns subtensor layout
- Returns
- Layout
size_t getNumberOfDims |
( |
| ) |
const |
|
inline |
Returns the number of dimensions of the subtensor
- Returns
- Number of dimensions of the subtensor
DataType* getPtr |
( |
| ) |
const |
|
inline |
Gets a pointer to the buffer for the subtensor
- Returns
- Pointer to the buffer for the subtensor
size_t getRangeDimIdx |
( |
| ) |
const |
|
inline |
Gets values for the next dimension after fixed to get data from
- Returns
- Value of the dimension
size_t getRangeDimNum |
( |
| ) |
const |
|
inline |
Gets range for dimension values to get data from
- Returns
- Range for dimension values to get data from
size_t getRWFlag |
( |
| ) |
const |
|
inline |
Returns a flag specifying read/write access to the subtensor
- Returns
- Flag specifying read/write access to the subtensor
services::SharedPtr<DataType> getSharedPtr |
( |
| ) |
const |
|
inline |
Gets a pointer to the buffer for the subtensor
- Returns
- Pointer to the buffer for the subtensor
Returns the full size of the subtensor in number of elements
- Returns
- The full size of the subtensor in number of elements
size_t* getSubtensorDimSizes |
( |
| ) |
const |
|
inline |
Returns the array with sizes of dimensions of the subtensor
- Returns
- Array with sizes of the dimensions of the subtensor
Reset internal values and pointers to zero values
Returns true if memory of (_subtensorSize) size is allocated successfully
Saves subtensor offset layout
- Parameters
-
Saves subtensor offset layout copy
- Parameters
-
size_t setDetails |
( |
size_t |
tensorNDims, |
|
|
const size_t * |
tensorDimNums, |
|
|
size_t |
nFixedDims, |
|
|
const size_t * |
fixedDimNums, |
|
|
size_t |
rangeDimIdx, |
|
|
size_t |
rangeDimNum, |
|
|
int |
rwFlag |
|
) |
| |
|
inline |
Sets subtensor parameters
- Parameters
-
[in] | tensorNDims | The number of dimensions with fixed values |
[in] | tensorDimNums | Values of the tensor dmensions |
[in] | nFixedDims | The number of first dimension with fixed values |
[in] | fixedDimNums | Values at which dimensions are fixed |
[in] | rangeDimIdx | Values for the next dimension after fixed to get data from |
[in] | rangeDimNum | Range for dimension values to get data from |
[in] | rwFlag | Flag specifying read/write access to the subtensor |
- Returns
- Subtensor size
void setPtr |
( |
DataType * |
ptr | ) |
|
|
inline |
Sets data pointer to use for in-place calculation
- Parameters
-
- Deprecated:
- This item will be removed in a future release.
The documentation for this class was generated from the following file: