Class ReverseV2

Inheritance Relationships

Base Type

Class Documentation

class ReverseV2 : public mindspore::ops::PrimitiveC

Reverses specific dimensions of a tensor. Refer to Python API mindspore.ops.ReverseV2 for more details.

Public Functions

inline ReverseV2()

Constructor.

~ReverseV2() = default

Destructor.

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

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

void set_axis(const std::vector<int64_t> &axis)

Set axis.

std::vector<int64_t> get_axis() const

Get axis.

Returns

axis.