Skip to content

Commit

Permalink
replace deprecated np.int with int to avoid crash (apache#16279)
Browse files Browse the repository at this point in the history
replace deprecated np.int with int
  • Loading branch information
jikechao authored Dec 26, 2023
1 parent a906504 commit a050696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,7 @@ def interpolate(self, inputs, input_types):
for i in [0, 1]:
size, _ = try_infer_value(
inputs[1][i],
lambda ret: ret.astype(np.int),
lambda ret: ret.astype(int),
lambda: _op.expand_dims(inputs[1][i], axis=0),
)
out_size.append(size)
Expand Down

0 comments on commit a050696

Please sign in to comment.