23.11
|
Go to the documentation of this file.
37 for (
unsigned int i = 0; i < padding_list.size(); ++i)
39 if (i != height_index && i != width_index && padding_list[i] !=
PaddingInfo(0, 0))
@ NCHW
Num samples, channels, height, width.
std::vector< PaddingInfo > PaddingList
List of padding information.
DataLayout
[DataLayout enum definition]
@ NHWC
Num samples, height, width, channels.
bool is_padding_in_height_or_width(const DataLayout &layout, const PaddingList &padding_list)
Check if padding is in height and/or width dimensions.
size_t get_dimension_idx(DataLayout data_layout, const DataLayoutDimension data_layout_dimension)
Get index of a tensor's given dimension depending on its layout.
Copyright (c) 2017-2023 Arm Limited.
std::pair< uint32_t, uint32_t > PaddingInfo
Padding information as a pair of unsigned int start/end.