-
Notifications
You must be signed in to change notification settings - Fork 7k
add torch.script tests to convert_image_dtype #2313
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
Conversation
Test failure seems related. @fmassa Could you have a look if I misunderstood the usage of |
I think the test failures are because |
Oh dang, that should have been obvious. Sorry, I was tired when I wrote it. |
I think test failures might be either due to a breakage in PyTorch (cc @eellison does it ring a bell for the Faster R-CNN and Mask R-CNN tests?) or you need to rebase on top of master (which I think it's the case, just confirming) |
Will try the rebase. I've seen errors such as this:
I don't think this will be fixed by a rebase. Is it possible that I'm not allowed to use that attribute in Edit: This branch is based on c2e8a00, which is the |
@pmeier I see, it's an issue with torchscript (it currently doesn't have For now, the workaround would probably be to do img.dtype in [torch.float16, torch.float32, torch.float64] until torchscript supports it. But then, we will have another issue afterwards, which is that torchscript doesn't support I think for now it's better to wait until torchscript adds better support for dtype, so let's hold on with this PR for now. :-/ cc @eellison |
I've pushed the last commit before I saw your comment. You can ignore it for noe and I will revert it when we move forward with this PR. |
Superseded by #2485. |
Addresses #2078 (comment)