Closed chhzh123 closed 2 years ago
The .reshape() primitive operates on the schedule, and should directly generate new memref for tensors.
.reshape()
memref
def test_index_split_reshape(): hcl.init() A = hcl.placeholder((10, 10), "A") B = hcl.compute(A.shape, lambda y, x: A[y][x], "B") s = hcl.create_schedule([A, B]) s[B].split(B.axis[0], 5) s.reshape(B, (2, 5, 10))
The
.reshape()
primitive operates on the schedule, and should directly generate newmemref
for tensors.