mindspore.ops.BroadcastTo

class mindspore.ops.BroadcastTo(shape)[源代码]
prim = ops.BroadcastTo(shape)
out = prim(input)

等价于

ops.broadcast_to(input, shape)

更多详情请查看: mindspore.ops.broadcast_to()