Open
Description
Bug Description
RuntimeError: [Error thrown at core/partitioning/shape_analysis.cpp:183] Expected ivalues_maps.count(input) to be true but got false
Could not find torch::jit::Value* hidden.1 produced from %hidden.1 : (Tensor, Tensor) = prim::TupleConstruct(%440, %440) in lowering graph for mini graph input.
To Reproduce
Steps to reproduce the behavior:
hidden: Tuple[torch.Tensor, torch.Tensor] = (
torch.zeros(
size=(batch_size, self.hidden_size),
dtype=torch.float,
device=self.device
),
torch.zeros(
size=(batch_size, self.hidden_size),
dtype=torch.float,
device=self.device
)
)
Environment
Build information about Torch-TensorRT can be found by turning on debug messages
torch==2.1.0.dev20230418+cu117
torch-tensorrt==1.4.0.dev0+a245b861
- CPU Architecture: Intel 10750h
- OS (e.g., Linux): Linux
- Are you using local sources or building from archives: nvidia tensorrt 8.5.3.1
- Python version: 3.8
- CUDA version: 11.7