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

Allow for Pytorch 2.0 JIT tracing and torch onnx conversion. #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ki-arie
Copy link

@ki-arie ki-arie commented Jun 21, 2023

Issue:

When creating ONNX file or Pytorch JIT trace, this utils file throws a type error, as the torch.Size() function expects an array of ints not torch tensors.

Fix:

Extract int from torch tensor, using .item()func call.

# Issue:

When creating ONNX file or Pytorch JIT trace, this utils file throws a type error, as the `torch.Size()` function expects an array of ints not torch tensors.

# Fix:
Extract int from torch tensor, using `.item()`func call.
@ki-arie ki-arie marked this pull request as draft June 21, 2023 03:25
@ki-arie ki-arie marked this pull request as ready for review June 21, 2023 03:25
@LWQ2EDU
Copy link

LWQ2EDU commented Oct 10, 2023

the fix causes TracerWarning
16969026687986
maybe it's better to use the function in this issues
#182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants