TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

↔ [Converter] Add support for aten::atan2 in Torch-TensorRT

Open Njuapp opened this issue 2 years ago • 2 comments

Unsupported operator: aten::atan2(Tensor self, Tensor other) -> (Tensor)

  • Function Schema: aten::atan2(Tensor self, Tensor other) -> (Tensor)

  • Original PyTorch API: torch.atan2(input, other, *, out=None) → [Tensor]

  • Relevant TensorRT Documentation: None

Alternatives

Additional context

When using Fourier transformation in audio segmentation models, torch.atan2 will be used. Because variable audio input lengths requires dynamic shape, fallback to pytorch would cause runtime error when creating example inputs by partitioning::generateRandomInputs. It reports

RuntimeError: Trying to create tensor with negative dimension -1: [1, 1, -1]

Therefore, we need convertor for torch.atan2 to successfully convert such models.

Njuapp avatar Mar 23 '22 04:03 Njuapp

cc: @ncomly-nvidia

narendasan avatar Mar 25 '22 18:03 narendasan

cc: @apbose

narendasan avatar May 20 '22 01:05 narendasan

This issue has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days

github-actions[bot] avatar Oct 05 '22 00:10 github-actions[bot]