prepare_backend

dragon.onnx.prepare_backend(
  model,
  device='CPU:0',
  **kwargs
)

Create a backend to execute repeatedly.

Parameters:
  • model (str) – The path of onnx model file.
  • device (str, optional, default='CPU:0') – The executing device.
Returns:

dragon.onnx.BackendRep – The backend.