Go to the documentation of this file.
18 namespace InferenceEngine {
23 class INFERENCE_ENGINE_API_CLASS(BlockingDesc) {
96 return offsetPaddingToData;
105 return offsetPadding;
147 size_t offsetPadding;
153 class INFERENCE_ENGINE_API_CLASS(TensorDesc) {
333 ROI(
size_t id,
size_t posX,
size_t posY,
size_t sizeX,
size_t sizeY) :
334 id(id), posX(posX), posY(posY), sizeX(sizeX), sizeY(sizeY) {
351 bool useOrigMemDesc);
const BlockingDesc & getBlockingDesc() const
Returns the blocking descriptor.
Definition: ie_layouts.h:260
const SizeVector & getStrides() const
Returns strides for each dimension.
Definition: ie_layouts.h:113
BlockingDesc(const SizeVector &blocked_dims, const SizeVector &order, size_t offset, const SizeVector &dimOffsets, const SizeVector &strides)
The constructor allows to create blocking descriptors for blocked memory.
BlockingDesc(const SizeVector &blocked_dims, const SizeVector &order)
The constructor allows to create blocking descriptors for blocked memory.
void reshape(const SizeVector &dims, Layout layout=Layout::ANY)
Reshapes the tensor descriptor.
A header file that provides class for describing precision of data.
TensorDesc(const Precision &precision, Layout layout)
The constructor creates the empty tensor descriptor with precision and layout.
TensorDesc make_roi_desc(const TensorDesc &origDesc, const ROI &roi, bool useOrigMemDesc)
Creates a TensorDesc object for ROI.
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS.
Definition: ie_c_api.h:251
This class holds precision value and provides precision related operations.
Definition: ie_precision.hpp:23
const SizeVector & getDims() const noexcept
Returns the constant vector of dimensions.
Definition: ie_layouts.h:211
const SizeVector & getOrder() const
Returns the vector of order.
Definition: ie_layouts.h:86
bool operator!=(const TensorDesc &rhs) const
The comparison operator for the TensorDesc.
This class defines Tensor description.
Definition: ie_layouts.h:153
void setDims(const SizeVector &dims)
Sets dimensions.
SizeVector & getDims()
Returns the vector of dimensions.
Definition: ie_layouts.h:203
TensorDesc(const Precision &precision, const SizeVector &dims, const BlockingDesc &blockDesc)
The constructor creates the tensor descriptor using blocking descriptor.
size_t getOffsetPadding() const
Returns the offset to the current memory block.
Definition: ie_layouts.h:104
void setLayout(Layout l)
Sets the layout.
BlockingDesc(const SizeVector &dims, Layout layout)
The constructor which allows to create blocking descriptors for standard layouts.
bool operator==(const TensorDesc &rhs) const
The comparison operator for the TensorDesc.
const SizeVector & getOffsetPaddingToData() const
Returns the per-dimension offset vector.
Definition: ie_layouts.h:95
BlockingDesc(const SizeVector &blocked_dims, const SizeVector &order, size_t offset, const SizeVector &dimOffsets)
The constructor allows to create blocking descriptors for blocked memory.
bool operator!=(const BlockingDesc &rhs) const
The comparison operator for the BlockingDesc.
size_t offset(size_t l) const
Calculates offset for the local offset.
This is a header file with common inference engine definitions.
std::vector< size_t > SizeVector
Represents tensor size.
Definition: ie_common.h:27
TensorDesc(const Precision &precision, const SizeVector &dims, Layout layout)
The constructor creates the tensor descriptor using standard layout.
TensorDesc()
The default constructor which creates empty tensor descriptor.
This class describes blocking layouts.
Definition: ie_layouts.h:23
BlockingDesc()
The default constructor which creates empty blocking descriptor.
void setPrecision(const Precision &p)
Sets the memory precision.
Definition: ie_layouts.h:251
bool operator==(const BlockingDesc &rhs) const
The comparison operator for the BlockingDesc.
size_t offset(const SizeVector &v) const
Calculates offset for the vector of dimensions.
This structure describes ROI data for image-like tensors.
Definition: ie_layouts.h:324
Layout
Layouts that the inference engine supports.
Definition: ie_common.h:63
const Precision & getPrecision() const
Returns the memory precision.
Definition: ie_layouts.h:242
static Layout getLayoutByDims(const SizeVector &dims)
Returns the standard layout for dimensions.
BlockingDesc(const SizeVector &blocked_dims, const SizeVector &order, size_t offset)
The constructor allows to create blocking descriptors for blocked memory.
Layout getLayout() const
Returns the memory layout.
Definition: ie_layouts.h:226
const SizeVector & getBlockDims() const
Returns the blocked dimensions vector.
Definition: ie_layouts.h:77
void reshape(const SizeVector &dims, const BlockingDesc &blockDesc)
Reshapes the tensor descriptor.