We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
After converting a PyTorch model to Torch dialect, some parts are converted to this:
%6 = torch.vtensor.literal(dense<5> : tensor<si64>) : !torch.vtensor<[],si64> ... %451 = torch.prim.NumToTensor.Scalar %int5 : !torch.int -> !torch.vtensor<[],si64> %452 = torch.aten.div.Tensor_mode %451, %6, %str : !torch.vtensor<[],si64>, !torch.vtensor<[],si64>, !torch.str -> !torch.vtensor<[],si64> %453 = torch.aten.Int.Tensor %452 : !torch.vtensor<[],si64> -> !torch.int %454 = torch.prim.ListConstruct %453, %int5, %int-1 : (!torch.int, !torch.int, !torch.int) -> !torch.list<int> %455 = torch.aten.view %450, %454 : !torch.vtensor<[5,2048],f32>, !torch.list<int> -> !torch.vtensor<[?,5,?],f32>
As you can see, most of them can be pre-computed since the inputs are all constant integers, then we can get a static shaped %455.
Any idea for this?
The text was updated successfully, but these errors were encountered:
We already partially support this. It requires an extension for "div". We can generalize the logic here: #935
Sorry, something went wrong.
This issue is solved by #1209 . Thanks @Vremold .
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
After converting a PyTorch model to Torch dialect, some parts are converted to this:
As you can see, most of them can be pre-computed since the inputs are all constant integers, then we can get a static shaped %455.
Any idea for this?
The text was updated successfully, but these errors were encountered: