-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
tuple slice indices must be integer constants error #755
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
Comments
Hello, I have encountered the same problem, have you resolved it ? |
i have the same problem. would be great to have more infos or a solution here |
ok got it. you can trace instead of script.
|
I was trying to convert Unet segmentation model to torchscript model and ran into same error. Please let me know whether script worked for you rather than trace @nefario7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to convert Unet segmentation model to torchscript model, get a run time error in
_base.py
that tuple slice indices must be integer constants.On converting the model to torchscript using :
traced_script_module = torch.jit.script(model)
, I am getting the following error.The text was updated successfully, but these errors were encountered: