Data Structures | Functions
ie_layouts.h File Reference

A header file for data layouts and conversion between them. More...

#include <algorithm>
#include "ie_api.h"
#include "ie_common.h"
#include "ie_precision.hpp"

Go to the source code of this file.

Data Structures

class  InferenceEngine::BlockingDesc
 This class describes blocking layouts. More...
 
class  InferenceEngine::TensorDesc
 This class defines Tensor description. More...
 
struct  InferenceEngine::ROI
 This structure describes ROI data for image-like tensors. More...
 

Functions

TensorDesc InferenceEngine::make_roi_desc (const TensorDesc &origDesc, const ROI &roi, bool useOrigMemDesc)
 Creates a TensorDesc object for ROI. More...
 

Detailed Description

A header file for data layouts and conversion between them.

Function Documentation

◆ make_roi_desc()

TensorDesc InferenceEngine::make_roi_desc ( const TensorDesc origDesc,
const ROI roi,
bool  useOrigMemDesc 
)

Creates a TensorDesc object for ROI.

Parameters
origDescoriginal TensorDesc object.
roiAn image ROI object inside of the original object.
useOrigMemDescFlag to use original memory description (strides/offset). Should be set if the new TensorDesc describes shared memory.
Returns
A newly created TensorDesc object representing ROI.