clDNN
|
Represents data padding information. More...
#include <layout.hpp>
Public Member Functions | |
float | filling_value () const |
Filling value for padding area. | |
tensor | lower_size () const |
Gets lower padding sizes. For spatials, it means size of left (X) and top (Y) padding. More... | |
tensor | upper_size () const |
Gets upper padding sizes. For spatials, it means size of right (X) and bottom (Y) padding. More... | |
padding (const std::vector< tensor::value_type > &lower_sizes, const std::vector< tensor::value_type > &upper_sizes, float filling_value=0.0f) | |
padding (const std::vector< tensor::value_type > &sizes, float filling_value=0.0f) | |
Constrcuts symmetric padding. More... | |
padding () | |
Constructs "zero-sized" padding. | |
padding (const cldnn_padding &other) | |
Copy construction. | |
operator cldnn_padding () const | |
Implicit conversion to C API cldnn_padding. | |
operator bool () const | |
Returns true if padding size is not zero. | |
Static Public Member Functions | |
static padding | max (padding const &lhs, padding const &rhs, float filling_value=0.0f) |
Friends | |
bool | operator== (const padding &lhs, const padding &rhs) |
bool | operator!= (const padding &lhs, const padding &rhs) |
bool | operator< (const padding &lhs, const padding &rhs) |
Represents data padding information.
Definition at line 125 of file layout.hpp.
|
inline |
lower_sizes | Top-left padding sizes. See tensor::tensor(const std::vector<value_type>&, value_type) for details. |
upper_sizes | Bottom-right padding sizes. See tensor::tensor(const std::vector<value_type>&, value_type) for details. |
filling_value | Filling value for padding area. |
Definition at line 142 of file layout.hpp.
|
inline |
Constrcuts symmetric padding.
sizes | Top-left and bottom-right padding sizes. See tensor::tensor(const std::vector<value_type>&, value_type) for details. |
filling_value | Filling value for padding area. |
Definition at line 149 of file layout.hpp.
|
inline |
Gets lower padding sizes. For spatials, it means size of left (X) and top (Y) padding.
Definition at line 132 of file layout.hpp.
|
inline |
Gets upper padding sizes. For spatials, it means size of right (X) and bottom (Y) padding.
Definition at line 136 of file layout.hpp.