Skip to content

Commit f26a8f5

Browse files
author
chenhao388
committed
lint
1 parent cada8b3 commit f26a8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ def test_module_buffer():
21612161
module.cuda()
21622162
assert module.td.device.type == "cuda"
21632163
elif is_npu_available():
2164-
module.npu()
2164+
module = module.to("npu:0")
21652165
assert module.td.device.type == "npu"
21662166

21672167

0 commit comments

Comments
 (0)