Skip to content

[Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy #36306

Description

@SaiShashank12

What happened?

When running Beam’s TensorRT inference handler (TensorRTEngineHandlerNumPy) on TensorRT 10.x, inference fails immediately during initialization:

AttributeError: 'tensorrt.tensorrt.ICudaEngine' object has no attribute 'num_bindings'

This happens because the handler is written against the legacy TensorRT 8.x API. In TensorRT 10, the "bindings" API was removed and replaced with the new tensors API (num_io_tensors, get_tensor_name, get_tensor_mode, execute_async_v3, etc.).

As a result, Beam pipelines cannot run on modern NVIDIA environments using TensorRT 10.x.

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions