This class describes blocking layouts. More...
#include <ie_layouts.h>
Public Member Functions | |
BlockingDesc () | |
The default constructor which creates empty blocking descriptor. |
|
BlockingDesc (const SizeVector &dims, Layout layout) | |
The constructor which allows to create blocking descriptors for standard layouts. More... |
|
BlockingDesc (const SizeVector &blocked_dims, const SizeVector &order) | |
The constructor allows to create blocking descriptors for blocked memory. More... |
|
BlockingDesc (const SizeVector &blocked_dims, const SizeVector &order, size_t offset) | |
The constructor allows to create blocking descriptors for blocked memory. More... |
|
BlockingDesc (const SizeVector &blocked_dims, const SizeVector &order, size_t offset, SizeVector dimOffsets) | |
The constructor allows to create blocking descriptors for blocked memory. More... |
|
BlockingDesc (const SizeVector &blocked_dims, const SizeVector &order, size_t offset, SizeVector dimOffsets, SizeVector strides) | |
The constructor allows to create blocking descriptors for blocked memory. More... |
|
virtual | ~BlockingDesc ()=default |
Destructor. |
|
const SizeVector & | getBlockDims () const |
Returns the blocked dimensions vector. More... |
|
const SizeVector & | getOrder () const |
Returns the vector of order. More... |
|
const SizeVector & | getOffsetPaddingToData () const |
Returns the per-dimension offset vector. More... |
|
size_t | getOffsetPadding () const |
Returns the offset to the current memory block. More... |
|
const SizeVector & | getStrides () const |
Returns strides for each dimension. More... |
|
bool | operator== (const BlockingDesc &rhs) const |
The comparison operator for the BlockingDesc. More... |
|
bool | operator!= (const BlockingDesc &rhs) const |
The comparison operator for the BlockingDesc. More... |
|
Protected Member Functions | |
void | fillDesc (const SizeVector &blocked_dims, const SizeVector &order) |
This class describes blocking layouts.
InferenceEngine::BlockingDesc::BlockingDesc | ( | const SizeVector & | dims, |
Layout | layout | ||
) |
The constructor which allows to create blocking descriptors for standard layouts.
dims | real dimensions |
layout | memory layout |
InferenceEngine::BlockingDesc::BlockingDesc | ( | const SizeVector & | blocked_dims, |
const SizeVector & | order | ||
) |
The constructor allows to create blocking descriptors for blocked memory.
blocked_dims | blocked dimensions |
order | the order of dimensions |
InferenceEngine::BlockingDesc::BlockingDesc | ( | const SizeVector & | blocked_dims, |
const SizeVector & | order, | ||
size_t | offset | ||
) |
The constructor allows to create blocking descriptors for blocked memory.
blocked_dims | blocked dimensions |
order | the order of dimensions |
offset | offset to the current memory block |
InferenceEngine::BlockingDesc::BlockingDesc | ( | const SizeVector & | blocked_dims, |
const SizeVector & | order, | ||
size_t | offset, | ||
SizeVector | dimOffsets | ||
) |
The constructor allows to create blocking descriptors for blocked memory.
blocked_dims | blocked dimensions |
order | the order of dimensions |
offset | offset to the current memory block |
dimOffsets | per-dimension offset from the padding to actual data, |
InferenceEngine::BlockingDesc::BlockingDesc | ( | const SizeVector & | blocked_dims, |
const SizeVector & | order, | ||
size_t | offset, | ||
SizeVector | dimOffsets, | ||
SizeVector | strides | ||
) |
The constructor allows to create blocking descriptors for blocked memory.
blocked_dims | blocked dimensions |
order | the order of dimensions |
offset | offset to the current memory block |
dimOffsets | per-dimension offset from the padding to actual data, |
strides | strides for each dimension |
|
inline |
Returns the blocked dimensions vector.
|
inline |
Returns the offset to the current memory block.
|
inline |
Returns the per-dimension offset vector.
|
inline |
Returns the vector of order.
|
inline |
Returns strides for each dimension.
bool InferenceEngine::BlockingDesc::operator!= | ( | const BlockingDesc & | rhs | ) | const |
The comparison operator for the BlockingDesc.
rhs | object to compare |
bool InferenceEngine::BlockingDesc::operator== | ( | const BlockingDesc & | rhs | ) | const |
The comparison operator for the BlockingDesc.
rhs | object to compare |