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