Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/tvm/topi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import numpy as np
import tvm
from tvm import relay, te
from tvm import te
from tvm.tir import bijective_layout, layout
from . import cpp, tag

Expand Down Expand Up @@ -455,7 +455,7 @@ def change_constant_shape(src, src_layout, dst_layout):
assert src_layout.isalpha() and dst_layout.isalpha()
axis_order = [src_layout.index(c) for c in dst_layout]
reshaped = np.transpose(src.data.numpy(), axis_order)
return relay.Constant(tvm.nd.array(reshaped))
return tvm.relay.Constant(tvm.nd.array(reshaped))


def within_index(b, e, s, i):
Expand Down