Skip to content

Commit 579d858

Browse files
authored
Set torchvision<0.21.0 to match torch/torch_npu version (#479)
### What this PR does / why we need it? Set torchvision<0.21.0 to match torch/torch_npu version to resolve `RuntimeError: operator torchvision::nms does not exist`. Closes: #477 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI passed Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
1 parent 1d88dac commit 579d858

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ requires = [
1111
"setuptools-scm>=8",
1212
"torch_npu >= 2.5.1rc1",
1313
"torch >= 2.5.1",
14+
"torchvision<0.21.0",
1415
]
1516
build-backend = "setuptools.build_meta"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ setuptools>=64
99
setuptools-scm>=8
1010
torch_npu >= 2.5.1rc1
1111
torch >= 2.5.1
12+
torchvision<0.21.0

0 commit comments

Comments
 (0)