Svashasan Logo
Simulated data

AI and Machine Learning · Inference and deployment

Model Inference

Also known as inference, forward pass, model execution, model serving

BeginnerSource-checked · awaiting technical reviewLast reviewed 6 December 2026

Model inference is the execution of a trained model on new input to produce outputs, such as detections or predicted trajectories, with the model's parameters held fixed. In vehicles it runs on the target ECU within latency, memory and power limits.

Explanation

Training and inference have different requirements. Training updates parameters and usually runs offline on data-centre hardware; inference only runs the forward pass and must meet the runtime constraints of the deployed system. Google's ML glossary describes inference in traditional ML as applying a trained model to unlabelled examples to make predictions.

Deployed inference is usually handled by a dedicated runtime rather than the training framework. ONNX Runtime partitions a model graph across execution providers, such as CPU, CUDA or TensorRT, and applies graph optimisations; TensorRT compiles a network into an engine specialised for one GPU during a build phase and executes it in a separate runtime phase.

Inference outputs can differ slightly between runtimes, precisions and even rebuilds of the same engine, because kernel selection and the order of floating-point operations change. Accuracy should therefore be validated on the deployed configuration, not only in the training framework, and latency and throughput measured on the target hardware.

How it works

A typical pipeline preprocesses the input (resize, normalise, change memory layout), copies it to the accelerator, executes the model graph, copies outputs back and post-processes them, for example decoding boxes and applying non-maximum suppression. The runtime loads and optimises the model once, allocates memory, then serves repeated requests; batching several inputs can raise throughput at the cost of per-request latency.

Automotive applications

  • Running perception networks on an ADAS domain controller
  • Driver-monitoring models on an in-cabin SoC
  • Offline re-processing of recorded drives
  • Replay and simulation testing
  • Edge analytics in telematics units

Example

An ADAS controller loads a TensorRT engine for a camera detector at start-up. For each 30 Hz frame it copies the preprocessed image to GPU memory, runs the engine, decodes the boxes and publishes them to the tracking node over the vehicle middleware.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Machine Learning Glossary (opens in a new tab)

    Google for Developers · Publication · inference · retrieved 6 December 2026

  2. ONNX Runtime Execution Providers (opens in a new tab)

    ONNX Runtime documentation (onnxruntime.ai) · Project documentation · retrieved 6 December 2026

  3. How TensorRT Works (opens in a new tab)

    NVIDIA TensorRT documentation · Manufacturer documentation · Build phase and runtime phase; Determinism · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.