Template Struct ReflectionPadOptions¶
Defined in File padding.h
Page Contents
Struct Documentation¶
-
template<size_t D>
struct ReflectionPadOptions¶ Options for a
D
-dimensional ReflectionPad module.Public Functions
-
inline ReflectionPadOptions(ExpandingArray<D * 2> padding)¶
-
inline auto padding(const ExpandingArray<D * 2> &new_padding) -> decltype(*this)¶
The size of the padding.
If it is
int
, uses the same padding in all boundaries. If it is a 2-tuple
(for ReflectionPad1d), uses (padding_left, padding_right). If it is a 4-tuple
(for ReflectionPad2d), uses (padding_left, padding_right, padding_top, padding_bottom). If it is a 6-tuple
(for ReflectionPad3d), uses (padding_left, padding_right, padding_top, padding_bottom, padding_front, padding_back).
-
inline auto padding(ExpandingArray<D * 2> &&new_padding) -> decltype(*this)¶
-
inline const ExpandingArray<D * 2> &padding() const noexcept¶
-
inline ExpandingArray<D * 2> &padding() noexcept¶
-
inline ReflectionPadOptions(ExpandingArray<D * 2> padding)¶