This class helps calculating offset in different layouts. More...
#include <ie_layouts.h>
Public Member Functions | |
LayoutOffsetCounter (Layout layout, SizeVector dims) | |
A default constructor. More... |
|
size_t | Offset (SizeVector pos) |
Calculates an offset for the specified layout. More... |
|
This class helps calculating offset in different layouts.
InferenceEngine::LayoutOffsetCounter::LayoutOffsetCounter | ( | Layout | layout, |
SizeVector | dims | ||
) |
A default constructor.
dims | Tensor dimension array (reverse NCHW order as in the IR: w,h,c,n) |
size_t InferenceEngine::LayoutOffsetCounter::Offset | ( | SizeVector | pos | ) |
Calculates an offset for the specified layout.
pos | Tensor position array (reverse NCHW order as in the IR: w,h,c,n) |