def size(value): return (op.prod(op.shape_of(value)), )
def size(unused_ctx, value): return (op.cast(op.prod(op.shape_of(value)), plaidml.DType.INT64), )
def shape(data): return (op.shape_of(data), )
def shape(unused_ctx, data): return (op.cast(op.shape_of(data), plaidml.DType.INT64), )