This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new d973b33f7f Replace `np.int` with `np.int32` (#17484)
d973b33f7f is described below
commit d973b33f7f1b5a0244593260ee807b7dc64a1333
Author: Masahiro Hiramori <[email protected]>
AuthorDate: Wed Oct 23 08:32:16 2024 +0900
Replace `np.int` with `np.int32` (#17484)
---
tests/python/topi/test_topi_depthwise_conv2d_back_input.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/python/topi/test_topi_depthwise_conv2d_back_input.py
b/tests/python/topi/test_topi_depthwise_conv2d_back_input.py
index b0a2631720..5087b00473 100644
--- a/tests/python/topi/test_topi_depthwise_conv2d_back_input.py
+++ b/tests/python/topi/test_topi_depthwise_conv2d_back_input.py
@@ -36,8 +36,8 @@ def verify_depthwise_conv2d_back_input(
stride_w = stride_h
padding_w = padding_h
- out_h = np.int((in_h + 2 * padding_h - filter_h) / stride_h + 1)
- out_w = np.int((in_w + 2 * padding_w - filter_w) / stride_w + 1)
+ out_h = np.int32((in_h + 2 * padding_h - filter_h) / stride_h + 1)
+ out_w = np.int32((in_w + 2 * padding_w - filter_w) / stride_w + 1)
out_channel = in_channel * channel_multiplier
ishape = [batch, in_h, in_w, in_channel]