Class BroadcastTo

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class BroadcastTo : public mindspore::ops::BaseOperator

Broadcasts input tensor to a given shape. Refer to Python API mindspore.ops.BroadcastTo for more details.

Public Functions

inline BroadcastTo()

Constructor.

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

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

void set_shape(const std::vector<int64_t> &shape)

Set shape.

std::vector<int64_t> get_shape() const

Get shape.

Returns

shape.