THE FILE FIELD GUIDE
.engine

TensorRT Engine

AI & Machine Learning

ENGINE can denote a TensorRT optimized inference engine, but the extension alone does not identify the format. TensorRT version, GPU, compatibility modes, input constraints and plugins influence runtime compatibility; establish build conditions.

What it is used for
Persisting optimized inference engines or producer-specific data
What the file contains
Producer-dependent
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

Identify the purpose and distribution

Identify the purpose and TensorRT build requirements.

  1. Read the publisher instructions and license; record the producer, version and purpose.
  2. For a TensorRT artifact, inspect source ONNX, build GPU, version and precision.
  3. Retain the original and assemble configuration and companions in a working copy.
Inspect with the matching environment

Successful loading and correct inference are separate checks.

  1. Use artifacts built by you or received over a trusted channel.
  2. Compare runtime version, GPU, OS and enabled compatibility modes with the build record.
  3. Inspect load logs and required plugins with the specified runtime or trtexec.
Test with a known input

Match the input contract and compare with a reference.

  1. Use known input with shapes/types inside the supported input profile.
  2. Compare outputs against the source ONNX and assess precision-related differences.
  3. Measure speed and memory on the target GPU and rebuild for another device when required.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • Deserialization fails: review version/build compatibility.
  • GPU differs: check default target and any configured compatibility mode.
  • Input mismatch: review I/O types/shapes and optimization profiles.
  • Deserialization fails on another GPU: inspect hardware compatibility mode and build conditions.
  • Shape fails: inspect build-time minimum/optimal/maximum shapes and selected profile.
  • Missing plugin: compare required build/runtime plugin libraries.

ENGINE → rebuild from the source model for the target environment

  1. Obtain the original model, build settings and required plugins.
  2. Build for the target environment and compare predictions/performance.
  3. Compare output shapes, values and timing with the same input before/after export; retain definitions and export settings.

Engines do not guarantee reconstruction of the original ONNX; renaming to PLAN does not change compatibility.

Compatibility of GPU artifacts

Engines depend on build conditions; version/hardware compatibility modes still require checking their supported scope.

Deserialization loads executable artifacts; avoid deserializing unknown files merely to inspect them.

Source for these steps:NVIDIA · Engine Compatibility / NVIDIA · Build your first engine / NVIDIA · TensorRT C++ API documentation

Record input profiles and precision

Dynamic input profiles constrain execution; arbitrary shapes may not be accepted.

Compare accuracy and performance on the same data after precision changes; retain source, build logs and reference outputs.

Source for these steps:NVIDIA · Engine Compatibility / NVIDIA · Build your first engine / NVIDIA · TensorRT C++ API documentation

Related-format differences

Related-format differences
FormatMain roleWhat to check
ENGINE / PLANTensorRT runtime artifactCheck build requirements
ONNXInference graph interchangeMay serve as rebuild input
PT / KERASSource-framework serializationRetain definitions/preprocessing

Handling and security

TensorRT engines may contain executable code and plugin dependencies. Do not deserialize/run untrusted engines or enable host-code permissions merely to make an unknown plan load.

Questions and answers

Will it run on every GPU?

It depends on build targets and compatibility modes.

Is ENGINE always TensorRT?

Identify producer and content type.

Can it be converted back to ONNX?

Do not assume universal reverse conversion; obtain the original model.

Do ENGINE and PLAN suffixes require conversion?

Both are used as serialized-artifact names; inspect contents and producer workflow.

Do compatibility flags make it universal?

Modes have limits; check platform, version, hardware and plugin requirements.

Format facts: name, steward and MIME type
Formal name
TensorRT serialized engine (common use)
Steward / specification
NVIDIA TensorRT / producer-specific uses
MIME type
Depends on the producer or server; an extension alone does not establish a MIME type.

Primary and official sources

  • Official documentationEngine Compatibility

    Documents TensorRT/GPU compatibility and trusted engine handling.

    NVIDIA · Link checked:
  • Official documentationBuild your first engine

    Build and validate an engine from ONNX.

    NVIDIA · Link checked:
  • Official documentationTensorRT C++ API documentation

    Documents deserializing only trusted engines.

    NVIDIA · Link checked: