Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device to TorchScriptTensor #1483

Merged
merged 3 commits into from
Apr 30, 2024

add test

0331c0d
Select commit
Loading
Failed to load commit list.
Merged

Add device to TorchScriptTensor #1483

add test
0331c0d
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL completed Apr 30, 2024 in 5s

1 configuration not found

Warning: Code scanning may not have found all the alerts introduced by this pull request, because 1 configuration present on refs/heads/main was not found:

API upload

  • ❓  <default>

New alerts in code changed by this pull request

  • 2 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 100 in onnxscript/function_libs/torch_lib/graph_building/_graph_building_torch.py

See this annotation in the file changed.

Code scanning / CodeQL

`__eq__` not overridden when adding attributes Warning

The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_torch_value
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_concrete_value
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_shape
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_torch_dtype
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_name
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_is_complex
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_device
.

Check warning on line 95 in onnxscript/function_libs/torch_lib/graph_building/_graph_building_ir.py

See this annotation in the file changed.

Code scanning / CodeQL

`__eq__` not overridden when adding attributes Warning

The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_is_complex
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_concrete_value
.
The class 'TorchScriptTensor' does not override
'__eq__'
, but adds the new attribute
_device
.