TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

🐛 [Bug] Encountered bug when using Torch-TensorRT

Open QiusongYang opened this issue 3 years ago • 4 comments

Bug Description

torch.max to tensorrt operator failure

To Reproduce

Steps to reproduce the behavior:

  1. batch_max_used_token_hidden_states.max(dim=1)[0]

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.1.0
  • PyTorch Version (e.g. 1.0): 1.12.0
  • CPU Architecture:
  • OS (e.g., Linux): Linux
  • How you installed PyTorch (conda, pip, libtorch, source): pytorch official docker 22.05
  • Build command you used (if compiling from source):
  • Are you using local sources or building from archives:
  • Python version:
  • CUDA version: 11.3
  • GPU models and configuration: tsal p40
  • Any other relevant information:

Additional context

QiusongYang avatar Jun 17 '22 06:06 QiusongYang

Please provide a complete reproducing script

narendasan avatar Jun 20 '22 21:06 narendasan

batch_max_token_hidden_states = batch_max_used_token_hidden_states.max(dim=1).values

QiusongYang avatar Jun 21 '22 09:06 QiusongYang

Hi @QiusongYang can you please provide your python script where you are seeing this failure? Without knowing the specific failure we won't be able to help debug with you.

ncomly-nvidia avatar Jun 21 '22 15:06 ncomly-nvidia

Hi @QiusongYang can you please provide your python script where you are seeing this failure? Without knowing the specific failure we won't be able to help debug with you.

actually, you can write any network and torch::max function, could you convert to tensorrt model?

QiusongYang avatar Jun 22 '22 01:06 QiusongYang

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 04 '22 00:10 github-actions[bot]