This is an automated email from the ASF dual-hosted git repository.

junrushao 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 a050696ca5 replace deprecated np.int with int to avoid crash (#16279)
a050696ca5 is described below

commit a050696ca54a823f7f6072de5ea89f1b900520ba
Author: Qingchao Shen <[email protected]>
AuthorDate: Wed Dec 27 05:04:43 2023 +0800

    replace deprecated np.int with int to avoid crash (#16279)
    
    replace deprecated np.int with int
---
 python/tvm/relay/frontend/pytorch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/relay/frontend/pytorch.py 
b/python/tvm/relay/frontend/pytorch.py
index 32a7d9c5d8..b02e59b265 100644
--- a/python/tvm/relay/frontend/pytorch.py
+++ b/python/tvm/relay/frontend/pytorch.py
@@ -2756,7 +2756,7 @@ class PyTorchOpConverter:
             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)

Reply via email to