Skip to content

[Converter] Request implementation aten::rsqrt(Tensor self) -> (Tensor) in Torch-TensorRT #1333

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

Closed
kimseongah opened this issue Sep 6, 2022 · 0 comments · Fixed by #1394
Closed
Assignees
Labels
component: converters Issues re: Specific op converters feature request New feature or request

Comments

@kimseongah
Copy link

Bug Description

ERROR: [Torch-TensorRT] - Method requested cannot be compiled end to end by Torch-TensorRT.TorchScript.
Unsupported operators listed below:

  • aten::rsqrt(Tensor self) -> (Tensor)

...

Traceback (most recent call last):
File "/workspace/SimSwap/simswap_torchTensorRT.py", line 17, in
trt_ts_module = torch_tensorrt.compile(
File "/usr/local/lib/python3.8/dist-packages/torch_tensorrt/_compile.py", line 117, in compile
return torch_tensorrt.ts.compile(ts_mod, inputs=inputs, enabled_precisions=enabled_precisions, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torch_tensorrt/ts/_compiler.py", line 113, in compile
compiled_cpp_mod = _C.compile_graph(module._c, _parse_compile_spec(spec))
RuntimeError: [Error thrown at core/compiler.cpp:446] Expected conversion::VerifyConverterSupportForBlock(g->block()) to be true but got false
Not all operations in graph are supported by the compiler

Expected behavior

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • Torch-TensorRT Version (e.g. 1.0.0):1.0.0
  • PyTorch Version (e.g. 1.0):1.1
  • CPU Architecture:
  • OS (e.g., Linux): Linux
  • How you installed PyTorch (conda, pip, libtorch, source): pip
  • Build command you used (if compiling from source):
  • Are you using local sources or building from archives:
  • Python version: 3.8
  • CUDA version: 11.4
  • GPU models and configuration: RTX 2080 Ti
  • Any other relevant information:

Additional context

@kimseongah kimseongah added the bug Something isn't working label Sep 6, 2022
@narendasan narendasan added feature request New feature or request component: converters Issues re: Specific op converters and removed bug Something isn't working labels Sep 6, 2022
@narendasan narendasan changed the title 🐛 [Bug] Request implementation aten::rsqrt(Tensor self) -> (Tensor) in Torch-TensorRT [Converter] Request implementation aten::rsqrt(Tensor self) -> (Tensor) in Torch-TensorRT Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: converters Issues re: Specific op converters feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants