build_engine

savant.deepstream.nvinfer.build_engine.build_engine(element, rebuild=True)

Builds the specified model engine (TRT).

Parameters:
  • element (ModelElement) – The model element for which the engine should be generated.

  • rebuild (bool) – Flag to force regeneration if the engine already exists.

Raises:

CreateElementException: Failed to create or link elements. BuildEngineException: Failed to run the pipeline.