Documentation
¶
Overview ¶
Package executionprovider defines the native GPU execution providers supported by the ONNX Runtime backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type identifies the ONNX Runtime execution provider used by a backend.
const ( // CPU runs on CPU only (the zero value). CPU Type = iota // CUDA runs on an NVIDIA GPU via the CUDA execution provider. CUDA // MIGraphX runs on an AMD GPU via the MIGraphX execution provider. It replaces the older ROCm EP. MIGraphX // WASM runs WebAssembly CPU execution provider in browser environments. WASM // WebGPU runs on WebGPU execution provider in browser environments. WebGPU // WebNN runs on WebNN execution provider in browser environments. WebNN // WebGL runs on WebGL execution provider in browser environments. WebGL )
func Parse ¶
Parse maps a configuration token to an executionprovider.Type. It accepts the same aliases as the backend config string: "cpu"/"" for CPU, "cuda"/"gpu" for CUDA, "migraphx"/"rocm"/"amd" for MIGraphX, "wasm" for WASM, "webgpu" for WebGPU, "webnn" for WebNN, and "webgl" for WebGL.