mindspore.Tensor.expand

Tensor.expand(*size)[source]

For details, please refer to mindspore.ops.broadcast_to(). The parameter size of the current interface is the same as the parameter shape of the reference interface.

Warning

Non-backward-compatible change after version 2.9.0: parameter name size will be renamed to sizes.