Class Range

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class Range : public mindspore::ops::BaseOperator

Creates a sequence of numbers in range [start, limit) with step size delta. Refer to Python API mindspore.nn.Range for more details.

Public Functions

inline Range()

Constructor.

void Init(const int64_t d_type, const int64_t start, const int64_t limit, const int64_t delta)

Init. Refer to the parameters of Python API mindspore.nn.Range for the inputs.

void set_d_type(const int64_t d_type)

Set d_type.

void set_start(const int64_t start)

Set start.

void set_limit(const int64_t limit)

Set limit.

void set_delta(const int64_t delta)

Set delta.

int64_t get_d_type() const

Get d_type.

Returns

d_type.

int64_t get_start() const

Get start.

Returns

start.

int64_t get_limit() const

Get limit.

Returns

limit.

int64_t get_delta() const

Get delta.

Returns

delta.