PadDirType#
Fully qualified name: cupva::PadDirType
Defined in src/host/shared/include/install/cupva_host_common.hpp
-
enum cupva::PadDirType#
Define PadDirType as uint8_t using one-hot encoding.
Padding is allowed in both x and y dimensions simultaneously. One-hot encoding enables bitwise-or:
Padding is only allowed in one direction per dimension:// PAD_TOP | PAD_LEFT: // +------------------+ +------------------+ // | pad TOP | | | // | +-------------+ | | // |pad | | -> | dst tile | // |LEFT| src buff | | | // | | | | | // +----+-------------+ +------------------+
// PAD_TOP | PAD_LEFT - valid // PAD_TOP | PAD_BOTTOM - invalid, cannot pad in 2 directions on y-axis simultaneously
Maturity: GA
Values:
-
enumerator PAD_NONE#
no padding
-
enumerator PAD_TOP#
padding to top edge
-
enumerator PAD_BOTTOM#
padding to bottom edge
-
enumerator INVALID_PAD_TOP_BOTTOM#
invalid padding to top and bottom at the same time
-
enumerator PAD_LEFT#
padding to left edge
-
enumerator PAD_TOP_LEFT#
padding to top and left edges
-
enumerator PAD_BOTTOM_LEFT#
padding to bottom and left edges
-
enumerator INVALID_PAD_TOP_BOTTOM_LEFT#
invalid padding to top, bottom and left a the same time
-
enumerator PAD_RIGHT#
padding to right edge
-
enumerator PAD_TOP_RIGHT#
padding to top and right edges
-
enumerator PAD_BOTTOM_RIGHT#
padding to bottom and right edges
-
enumerator INVALID_PAD#
invalid padding combination for this value and any larger integer