Python APIs Added in 10.x#
The following Python APIs have been added in TensorRT 10.x to support new features and improved functionality.
Added Python APIs, full catalog (types, methods)
Types
APILanguageExecutionContextAllocationStrategyIGpuAsyncAllocatorInterfaceInfoIPluginResourceIPluginV3IStreamReaderIVersionedInterface
Methods and Properties
ICudaEngine.is_debug_tensor()ICudaEngine.minimum_weight_streaming_budgetICudaEngine.streamable_weights_sizeICudaEngine.weight_streaming_budgetIExecutionContext.get_debug_listener()IExecutionContext.get_debug_state()IExecutionContext.set_all_tensors_debug_state()IExecutionContext.set_debug_listener()IExecutionContext.set_tensor_debug_state()IExecutionContext.update_device_memory_size_for_shapes()IGpuAllocator.allocate_async()IGpuAllocator.deallocate_async()INetworkDefinition.add_plugin_v3()INetworkDefinition.is_debug_tensor()INetworkDefinition.mark_debug()INetworkDefinition.unmark_debug()IPluginRegistry.acquire_plugin_resource()IPluginRegistry.all_creatorsIPluginRegistry.deregister_creator()IPluginRegistry.get_creator()IPluginRegistry.register_creator()IPluginRegistry.release_plugin_resource()
Removed Python APIs and Replacements#
Removed Python APIs, full replacement table
The APIs listed below have been removed in TensorRT 10.x and will cause runtime errors if called. Review each entry for its replacement before upgrading.
Removed API |
Replacement |
|---|---|
|
Builder optimization level 2. |
|
Use |
|
|
|
|
|
|
|
Strides, data type, and vectorization information are sufficient to identify tensor formats uniquely. |
|
Implicit batch support was removed. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No name-based equivalent replacement. |
|
No name-based equivalent replacement. |
|
|
|
|
|
|
|
|
|
|
|
Implicit batch is no longer supported. |
|
No name-based equivalent replacement. |
|
|
|
Implicit batch is no longer supported. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Explicit precision support was removed in 10.0. |
|
Implicit batch support was removed. |
|
|
|
Support was removed in 10.0. |
|
Support was removed in 10.0. |
|
Caffe support was removed. |
|
Caffe support was removed. |
|
External tactics are always disabled for core code. |
|
This flag is on by default. |
|
|
|
|
|
Use |
|
|
|
Use |