Class Pad

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Derived Type

Class Documentation

class Pad : public mindspore::ops::BaseOperator

Pads the input tensor according to the paddings. Refer to Python API mindspore.ops.Pad for more details.

Subclassed by mindspore::ops::PadFusion

Public Functions

inline Pad()

Constructor.

void Init(const std::vector<std::vector<int64_t>> &paddings)

Init. Refer to the parameters of Python API mindspore.ops.Pad for the inputs.

void set_paddings(const std::vector<std::vector<int64_t>> &paddings)

Set paddings.

std::vector<std::vector<int64_t>> get_paddings() const

Get paddings.

Returns

paddings.