def broadcast(input, tshape):
    op = builtin.Broadcast()
    return invoke_op(op, (input, tshape), canonize_reshape)
Example #2
0
 def f():
     (b, ) = apply(ops.Broadcast(), a, tensor([1, 10], dtype=np.int32))
     return b