#include <pad.hpp>
Pad an image.
Definition at line 38 of file pad.hpp.
◆ pad()
| lbann::transform::pad::pad |
( |
size_t |
p | ) |
|
|
inline |
Pad p on all size.
Definition at line 42 of file pad.hpp.
◆ apply()
Apply the transform to data.
- Parameters
-
| data | The input data to transform, which is modified in-place. The matrix shuold be contiguous. |
| dims | The dimensions of the data tensor. For "plain data", dims should have one entry, giving its size. For images, dims should have three entries: channels, height, width. |
- Note
- dims is a hack until we have proper tensors.
Implements lbann::transform::transform.
◆ copy()
| transform* lbann::transform::pad::copy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ get_type()
| std::string lbann::transform::pad::get_type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ m_p
| size_t lbann::transform::pad::m_p |
|
private |
Pad for the image.
Definition at line 53 of file pad.hpp.
The documentation for this class was generated from the following file: