Skip to content

🐛 [Bug] Expected ivalues_maps.count(input) to be true but got false #1834

Open
@Charlyo

Description

@Charlyo

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

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions