-
Notifications
You must be signed in to change notification settings - Fork 681
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
Encountered known unsupported method torch.nn.functional.pixel_shuffle #493
Comments
Hi, bro, i am doing exactly the same thing, how is it going on now ? |
Hi All, Thanks for reaching out! It may be possible to implement this layer using the TensorRT Python API. https://docs.nvidia.com/deeplearning/tensorrt/api/python_api/infer/Graph/Layers.html#ishufflelayer Some documentation for how to add a custom converter to torch2trt is detailed here https://nvidia-ai-iot.github.io/torch2trt/master/usage/custom_converter.html I haven't personally done this yet for the pixel_shuffle layer, but I imagine it is possible. Let me know if this helps or you run into any issues, or have any questions. Best, |
Hello, have you made a relevant implementation for this method yet? |
I tried the following code and the warning contacts, but the predictions don't match the pytorch model predictions at all import tensorrt as trt @tensorrt_converter('torch.nn.functional.pixel_shuffle') |
I have refered the code from https://github.com/NVIDIA-AI-IOT/torch2trt/issues/612, and it works for me. @tensorrt_converter('torch.nn.functional.pixel_shuffle')
|
i convert alphapose fast_res50_256x192.pth model, but i encounter the unsupported layer ?
The text was updated successfully, but these errors were encountered: