ExecutionProvider
Execution provider used to run Vision ONNX model inference.
from nutrient_sdk import ExecutionProviderValues
| Name | Value | Description |
|---|---|---|
ExecutionProvider.AUTO | 0 | Let the SDK decide per capacity: capacities validated end-to-end on the GPU (the table, layout, orientation, handwriting word-extraction, and form capacities) default to GPU; every other GPU-eligible model defaults to CPU. Force the choice explicitly with Gpu or Cpu. |
ExecutionProvider.CPU | 1 | Force CPU inference for all Vision models, regardless of GPU availability. |
ExecutionProvider.GPU | 2 | Force GPU inference for GPU-eligible Vision models. The native runtime still falls back to CPU per-session if the GPU provider can’t load a given model. |
Usage Example
from nutrient_sdk import ExecutionProvider
# Access enum valuesvalue = ExecutionProvider.AUTOprint(f"Value: {value}") # Output: Value: ExecutionProvider.AUTOprint(f"Integer value: {value.value}") # Output: Integer value: 0