24.02.1
|
Go to the documentation of this file.
24 #ifndef ACL_ARM_COMPUTE_CORE_CORETYPES
25 #define ACL_ARM_COMPUTE_CORE_CORETYPES
151 unsigned int stride_y = 1,
152 unsigned int pad_x = 0,
153 unsigned int pad_y = 0,
155 : _stride(std::make_pair(stride_x, stride_y)),
174 unsigned int stride_y,
180 : _stride(std::make_pair(stride_x, stride_y)),
192 std::pair<unsigned int, unsigned int>
stride()
const
202 return (_pad_left == _pad_right) && (_pad_top == _pad_bottom);
210 std::pair<unsigned int, unsigned int>
pad()
const
214 return std::make_pair(_pad_left, _pad_top);
247 return (_pad_left != 0 || _pad_top != 0 || _pad_right != 0 || _pad_bottom != 0);
251 std::pair<unsigned int, unsigned int> _stride;
252 unsigned int _pad_left;
253 unsigned int _pad_top;
254 unsigned int _pad_right;
255 unsigned int _pad_bottom;
@ NCHW
Num samples, channels, height, width.
@ QSYMM8_PER_CHANNEL
quantized, symmetric per channel fixed-point 8-bit number
@ QASYMM16
quantized, asymmetric fixed-point 16-bit number
@ U64
1 channel, 1 U64 per channel
@ RGB888
3 channels, 1 U8 per channel
@ U64
unsigned 64-bit number
@ UNKNOWN
Unknown image format.
@ BFLOAT16
16-bit brain floating-point number
DataLayout
[DataLayout enum definition]
PadStrideInfo(unsigned int stride_x=1, unsigned int stride_y=1, unsigned int pad_x=0, unsigned int pad_y=0, DimensionRoundingType round=DimensionRoundingType::FLOOR)
Constructor.
@ F64
64-bit floating-point number
unsigned int pad_right() const
Get the right padding.
DimensionRoundingType round() const
Get the rounding type.
@ NCDHW
Num samples, channels, depth, height, width.
@ NHWC
Num samples, height, width, channels.
DataLayoutDimension
[DataLayout enum definition]
@ QASYMM8
quantized, asymmetric fixed-point 8-bit number unsigned
@ U16
unsigned 16-bit number
std::pair< unsigned int, unsigned int > pad() const
Get the padding.
@ QSYMM8
quantized, symmetric fixed-point 8-bit number
DimensionRoundingType
Dimension rounding type when down-scaling on CNNs.
bool has_padding() const
Check whether this has any padding.
bool padding_is_symmetric() const
Check whether the padding is symmetric.
@ QSYMM16
quantized, symmetric fixed-point 16-bit number
@ UV88
2 channel, 1 U8 per channel
@ S64
1 channel, 1 S64 per channel
PadStrideInfo(unsigned int stride_x, unsigned int stride_y, unsigned int pad_left, unsigned int pad_right, unsigned int pad_top, unsigned int pad_bottom, DimensionRoundingType round)
Constructor.
Strides of an item in bytes.
half_float::half half
16-bit floating point type
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
WeightFormat
Memory layouts for the weights tensor.
@ U32
unsigned 32-bit number
@ U8
unsigned 8-bit number
@ S16
signed 16-bit number
@ QASYMM8_SIGNED
quantized, asymmetric fixed-point 8-bit number signed
@ C1
Second channel (used by formats with unknown channel types).
@ IYUV
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
@ RGBA8888
4 channels, 1 U8 per channel
@ C0
Unknown channel format.
@ C2
Third channel (used by formats with unknown channel types).
@ U8
1 channel, 1 U8 per channel
Format
Image colour formats.
Channel
Available channels.
@ S32
1 channel, 1 S32 per channel
@ YUYV422
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
unsigned int pad_left() const
Get the left padding.
@ YUV444
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
@ UYVY422
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
@ F32
1 channel, 1 F32 per channel
unsigned int pad_bottom() const
Get the bottom padding.
@ S64
signed 64-bit number
Copyright (c) 2017-2024 Arm Limited.
@ NV12
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
@ F16
16-bit floating-point number
@ S32
signed 32-bit number
@ F16
1 channel, 1 F16 per channel
@ UNKNOWN
Unknown data layout.
@ S16
1 channel, 1 S16 per channel
@ F32
32-bit floating-point number
@ BFLOAT16
16-bit brain floating-point number
@ UNKNOWN
Unknown data type.
@ C3
Fourth channel (used by formats with unknown channel types).
DataType
Available data types.
@ NV21
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
unsigned int pad_top() const
Get the top padding.
std::pair< unsigned int, unsigned int > stride() const
Get the stride.
@ NDHWC
Num samples, depth, height, width, channels.
@ U32
1 channel, 1 U32 per channel
@ U16
1 channel, 1 U16 per channel