Class ReverseSequence

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class ReverseSequence : public mindspore::ops::BaseOperator

Reverses variable length slices. Refer to Python API mindspore.ops.ReverseSequence for more details.

Public Functions

inline ReverseSequence()

Constructor.

void Init(const int64_t seq_dim, const int64_t batch_dim = 0)

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

void set_seq_dim(const int64_t seq_dim)

Set seq_dim.

void set_batch_dim(const int64_t batch_dim)

Set batch_dim.

int64_t get_seq_dim() const

Get seq_dim.

Returns

seq_dim.

int64_t get_batch_dim() const

Get batch_dim.

Returns

batch_dim.