Skip to content

fix openreg device

6ed5721
Select commit
Loading
Failed to load commit list.
Draft

tests(pt): use openreg in UT #5188

fix openreg device
6ed5721
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Feb 2, 2026 in 2s

40 new alerts

New alerts in code changed by this pull request

  • 2 warnings
  • 38 notes

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 387 in source/3rdparty/torch_openreg/tests/test_memory.py

See this annotation in the file changed.

Code scanning / CodeQL

Unnecessary delete statement in function Warning library test

Unnecessary deletion of local variable
final_tensor
in function
test_leak_detection_with_statistics
.

Check warning on line 254 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Variable defined multiple times Warning library test

This assignment to 'x' is unnecessary as it is
redefined
before this value is used.

Check notice on line 66 in source/3rdparty/torch_openreg/tests/test_event.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a > b) cannot provide an informative message. Using assertGreater(a, b) instead will give more informative messages.

Check notice on line 103 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 107 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 121 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 138 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 151 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 181 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 194 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 209 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 214 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 296 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note library test

Variable x is not used.

Check notice on line 332 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 348 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 349 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Statement has no effect Note library test

This statement has no effect.

Check notice on line 473 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note library test

Variable backward_ops is not used.

Check notice on line 521 in source/3rdparty/torch_openreg/tests/test_profiler.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a > b) cannot provide an informative message. Using assertGreater(a, b) instead will give more informative messages.

Check notice on line 153 in source/3rdparty/torch_openreg/tests/test_storage.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a is b) cannot provide an informative message. Using assertIs(a, b) instead will give more informative messages.

Check notice on line 79 in source/3rdparty/torch_openreg/tests/test_streams.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a in b) cannot provide an informative message. Using assertIn(a, b) instead will give more informative messages.

Check notice on line 15 in source/3rdparty/torch_openreg/tests/test_utils.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 8 in source/3rdparty/torch_openreg/tests/test_memory.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused import Note library test

Import of 'torch_openreg' is not used.

Check notice on line 186 in source/3rdparty/torch_openreg/tests/test_memory.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 32 in source/3rdparty/torch_openreg/tests/test_misc.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Check notice on line 119 in source/3rdparty/torch_openreg/tests/test_misc.py

See this annotation in the file changed.

Code scanning / CodeQL

Imprecise assert Note library test

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.