BackendRep

class dragon.onnx.BackendRep(
  model,
  device,
  **kwargs
)[source]

ONNX-Dragon backend to execute repeatedly.

__init__

BackendRep.__init__(
  model,
  device,
  **kwargs
)[source]

Create a BackendRep.

Parameters:
  • model (str) – The path of onnx model file.
  • device (onnx.Device) – The executing device.

Methods

run

BackendRep.run(
  inputs,
  **kwargs
)[source]

Run the model.

Parameters:
  • inputs (Union[Sequence, Dict]) – The input arrays.
Returns:

namedtuple – The model outputs.