Class StridedSlice

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class StridedSlice : public mindspore::ops::BaseOperator

Extracts a strided slice of a tensor. Refer to Python API mindspore.ops.StridedSlice for more details.

Public Functions

inline StridedSlice()

Constructor.

void Init(int64_t begin_mask = 0, int64_t end_mask = 0, int64_t ellipsis_mask = 0, int64_t new_axis_mask = 0, int64_t shrink_axis_mask = 0)

Init. Refer to the parameters of python API mindspore.ops.StridedSlice for the inputs.

void set_begin_mask(int64_t begin_mask)

Set begin_mask.

void set_end_mask(int64_t end_mask)

Set end_mask.

void set_ellipsis_mask(int64_t ellipsis_mask)

Set ellipsis_mask.

void set_new_axis_mask(int64_t new_axis_mask)

Set new_axis_mask.

void set_shrink_axis_mask(int64_t shrink_axis_mask)

Set shrink_axis_mask.

int64_t get_begin_mask() const

Get begin_mask.

返回

begin_mask.

int64_t get_end_mask() const

Get end_mask.

返回

end_mask.

int64_t get_ellipsis_mask() const

Get ellipsis_mask.

返回

ellipsis_mask.

int64_t get_new_axis_mask() const

Get new_axis_mask.

返回

new_axis_mask.

int64_t get_shrink_axis_mask() const

Get shrink_axis_mask.

返回

shrink_axis_mask.