onnxbackend

package module
v0.1.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ¶

compute-onnx

Documentation Sponsor GoMLX
Linux/arm64 Tests Darwin/arm64 Tests

ONNX Runtime based compute backend for GoMLX.

[!Note]

Microsoft intentionally made the ONNX Runtime repository -- located at github.com/microsoft/onnxruntime -- private late on November 17, 2026, as a precaution during an active supply-chain security investigation. It now returns a standard 404 page.

This impacts compute-onnx because it downloads the latest version of the ONNXRuntime library from GitHub. Also, that means for now all CI tests (Continuous Integration) are broken.

It allows GoMLX models to be executed via ONNX Runtime using:

  • Native Desktop/Server: CPU, CUDA (NVIDIA GPU), or MIGraphX (AMD ROCm GPU).
  • WebAssembly / Browser: WebGPU, CPU (WASM SIMD), WebNN, or WebGL in browsers (see ORT Web Guide).

It supports dynamic shapes and exporting models to .onnx files. It defaults to ONNX Opset 21 for broad compatibility across ONNX Runtime versions and execution providers, and supports opting into newer opsets via opset=<N> (e.g. GOMLX_BACKEND="onnx:cuda,opset=23" for native RMSNormalization; see ONNX Opset Targeting & Upgrade Roadmap).

Example Usage

To run the Adult dataset demo with the ONNX backend:

GOMLX_BACKEND=onnx go run -tags=onnx github.com/gomlx/gomlx/examples/adult/demo

Or targeting a specific accelerator (e.g. CUDA):

GOMLX_BACKEND=onnx:cuda go run -tags=onnx github.com/gomlx/gomlx/examples/adult/demo

Or on an AMD GPU (ROCm + MIGraphX):

GOMLX_BACKEND=onnx:migraphx go run -tags=onnx github.com/gomlx/gomlx/examples/adult/demo

Backend Options & Configuration

Configuration can be specified in the GOMLX_BACKEND environment variable using onnx:<options> or onnxruntime:<options> (comma-separated).

Accelerator Selection
  • cpu: Force CPU execution.
    GOMLX_BACKEND=onnx:cpu
    
  • cuda / gpu: Force CUDA GPU execution (uses ONNX Runtime CUDA Execution Provider via OrtIoBinding).
    GOMLX_BACKEND=onnx:cuda
    
  • migraphx / rocm / amd (EXPERIMENTAL): Force AMD GPU execution (uses ONNX Runtime MIGraphX Execution Provider). Requires ROCm and MIGraphX to be installed (sudo apt install migraphx migraphx-dev half). If no ORT library with the MIGraphX provider is found, one is automatically installed from AMD's manylinux wheels matching the local ROCm version — it can also be installed manually with go run github.com/gomlx/compute-onnx/cmd/onnxruntime_installer -migraphx. Notes:
    • Only float32/int32/int64 graphs are supported;
    • Models with scalar (0-dimensional) inputs fails (there is a bug upstream);
    • Buffers are always tranferred back to CPU (host), which makes training slower (TODO fix).
    GOMLX_BACKEND=onnx:migraphx
    
  • Custom Library Path: Specify an explicit path to the ONNX Runtime .so (or .dylib / .dll) shared library file. This explicitly bypasses ONNXRUNTIME_SHARED_LIBRARY_PATH.
    GOMLX_BACKEND=onnx:/path/to/libonnxruntime.so
    
  • empty (default): Automatically detects if an NVIDIA GPU is present via nvidia-smi and defaults to CUDA if available, then checks for a discrete AMD GPU (ROCm/MIGraphX), otherwise falling back to CPU.
    GOMLX_BACKEND=onnx
    
Runtime Session & Threading Options

Fine-tune ONNX Runtime session execution, multi-threading, and memory behavior:

  • intra_op_num_threads=<int>: Sets the number of threads used to parallelize execution within an operator. Default is 0 (ORT uses all available CPU cores). When running multiple concurrent worker threads or goroutines, setting this to 1 prevents thread oversubscription.
    • Aliases: intra_threads, intraopnumthreads
  • inter_op_num_threads=<int>: Sets the number of threads used to parallelize execution across independent operators in the graph (only effective when execution_mode=parallel). Default is 0.
    • Aliases: inter_threads, interopnumthreads
  • execution_mode=<parallel|sequential>: Controls whether independent operators in the computation graph execute sequentially or in parallel.
    • Aliases: executionmode, or standalone parallel / sequential.
  • cpu_mem_arena=<bool>: Enables or disables ONNX Runtime's CPU memory arena allocator. Default is true. Disabling (cpu_mem_arena=false or no_cpu_mem_arena) reduces memory lock contention when multiple worker threads execute concurrently.
    • Aliases: cpumemarena, or standalone cpu_mem_arena / no_cpu_mem_arena.
  • mem_pattern=<bool>: Enables or disables memory pattern optimization (tracing and reusing memory allocations for static shapes). Default is true. Only valid in sequential execution mode.
    • Aliases: mempattern, or standalone mem_pattern / no_mem_pattern.
  • graph_optimization_level=<level>: Controls the graph optimization level applied by ONNX Runtime:
    • 0 / disable_all / none: Disable all optimizations.
    • 1 / basic: Basic optimizations (constant folding, redundant node elimination).
    • 2 / extended: Extended optimizations (operator fusions such as LayerNorm, GELU, MatMul+Add).
    • 3 / layout: Layout optimizations.
    • 99 / all: Enable all available optimizations.
    • Aliases: graphoptimizationlevel, opt_level, optlevel.
  • session_clones=<int>: Maximum number of concurrent ONNX Runtime session clones pooled per compiled Executable. Default is 8 on CPU (1 on GPU). Clones are allocated on-demand as concurrent goroutines execute, eliminating session lock contention across workers while avoiding unnecessary memory allocation for single-threaded tasks.
    • Aliases: sessionclones, clones, session_pool, sessionpool.
  • opset=<int>: Target ai.onnx opset version for generated ONNX graphs (default 21, minimum 21). Setting opset=23 or higher enables opset-23+ operators such as native RMSNormalization for FusedLayerNorm with RMSNorm=true (requires an ONNX Runtime version that supports the requested opset).
    • Aliases: opset_version, opsetversion.

Example for high-throughput multi-worker concurrent inference:

GOMLX_BACKEND="onnx:cpu,intra_op_num_threads=1,inter_op_num_threads=1,cpu_mem_arena=false,execution_mode=parallel"
Save Model To ONNX

This allows one to export GOMLX trained (or fine-tuned) models to ONNX.

See an example in UCI-Adult demo. If you have a pre-trained file in a directory called base:

GOMLX_BACKEND=onnx go run -tags=onnx ./examples/adult/demo/ -checkpoint "base" -save_onnx="/tmp/a.onnx" -vmodule=save_onnx=1

ONNX Runtime Shared Libraries & Auto-Installation

The backend automatically locates or manages the required ONNX Runtime shared library (libonnxruntime.so / onnxruntime.dll):

  • Custom Library Path: Set the ONNXRUNTIME_SHARED_LIBRARY_PATH environment variable or pass an explicit library path in the backend configuration (e.g. GOMLX_BACKEND=onnx:/path/to/libonnxruntime.so) to point directly to the shared library binary. Passing an explicit path in the configuration bypasses ONNXRUNTIME_SHARED_LIBRARY_PATH.
  • Auto-Installation: If no library path is provided, the backend automatically downloads and extracts prebuilt official ONNX Runtime binaries locally (e.g. ~/.local/lib/onnxruntime/ on Linux).
  • Disabling Auto-Installation: Set the environment variable GOMLX_NO_AUTO_INSTALL=1 or call onnxbackend.EnableAutoInstall(false) programmatically to disable automatic downloads (useful for offline environments or container deployments).

AMD ROCm / MIGraphX Environment Variables

The MIGraphX execution provider relies on a local ROCm installation:

  • ROCM_PATH: Directory where ROCm is installed (defaults to /opt/rocm). It is used to locate rocminfo and the HIP/MIGraphX libraries when auto-detecting an AMD GPU and its ROCm version.
  • GOMLX_MIGRAPHX_CACHE_DIR: Directory where the MIGraphX compiled-program (.mxr) for each model is cached, skipping the expensive graph compilation on subsequent runs. Equivalent to the migraphx_cache_dir config key (e.g. GOMLX_BACKEND=onnx:migraphx,migraphx_cache_dir=/tmp/mxr); an empty value disables caching.

Debugging

Saving Failed Models (GOMLX_ONNX_SAVE_ON_FAILURE)

If graph compilation or session creation fails in ONNX Runtime, setting the GOMLX_ONNX_SAVE_ON_FAILURE environment variable instructs the backend to automatically save the serialized ONNX model protobuf to the specified file path before returning the compilation error:

GOMLX_ONNX_SAVE_ON_FAILURE="/tmp/failed_model.onnx" go run -tags=onnx ...

This allows you to inspect the invalid graph using onnx_printer or Netron to diagnose the failure.

Inspecting .onnx Files (onnx_printer)

This repository includes a CLI tool in cmd/onnx_printer to inspect and pretty-print .onnx model files in the terminal:

go run github.com/gomlx/compute-onnx/cmd/onnx_printer path/to/model.onnx

It formats input, output, and node tensor shapes using GoMLX shapes.Shape (including named dynamic axes) and prints each graph operation on a single line. Tensor constants and initializers are truncated to 10 elements by default (controlled via -max_items / -n).

Example usage:

# Print model details with a maximum of 5 items for constant values
go run github.com/gomlx/compute-onnx/cmd/onnx_printer -max_items 5 /tmp/model.onnx

# Read from stdin
cat /tmp/model.onnx | go run github.com/gomlx/compute-onnx/cmd/onnx_printer

Tip: For interactive graphical visualization of ONNX models, you can open .onnx model files using Netron.

Logging & Verbosity
  • Backend Log Level (log=<level>): Configures ONNX Runtime's internal logging severity level.

    • log=0: Errors only (severity level 3 / ERROR)
    • log=1: Warnings (severity level 2 / WARNING)
    • log=2: Informational (severity level 1 / INFO)
    • log=3: Verbose (severity level 0 / VERBOSE)

    Example:

    GOMLX_BACKEND="onnx:cuda,log=2"
    
  • Execution Timing Log (-vmodule=executable=1): Enables per-step execution timing breakdown printed via klog using humanize.Duration.

    Example:

    GOMLX_BACKEND=onnx:cuda go run -tags=onnx github.com/gomlx/gomlx/examples/adult/demo -vmodule=executable=1
    

💖 Thanks

Documentation ¶

Overview ¶

Package onnxbackend implements an ONNX Runtime (ORT) compute backend for GoMLX (github.com/gomlx/compute).

It allows GoMLX models to be executed via ONNX Runtime using CPU, CUDA (NVIDIA GPU) or MIGraphX (AMD ROCm GPU). It supports dynamic shapes and exporting trained models to standard .onnx model files.

Registration & Initialization ¶

Importing this package registers the backend under the names "onnxruntime" and "onnx" with the GoMLX compute registry:

import _ "github.com/gomlx/compute-onnx"

Once imported, the backend can be selected automatically by `compute.New()` using the GOMLX_BACKEND environment variable:

GOMLX_BACKEND=onnx go run github.com/gomlx/gomlx/examples/adult/demo

Or created programmatically using `compute.NewWithConfig("onnx")` or directly via New:

backend, err := onnxbackend.New("cuda,log=2")

Configuration Options ¶

Configuration options can be specified in the GOMLX_BACKEND environment variable as "onnx:<options>" (or "onnxruntime:<options>") or passed directly to New:

Accelerator Selection:

  • cpu: Force CPU execution. GOMLX_BACKEND=onnx:cpu
  • cuda / gpu: Force CUDA GPU execution using ONNX Runtime CUDA Execution Provider via IoBinding. GOMLX_BACKEND=onnx:cuda
  • migraphx / rocm / amd: Force AMD GPU execution using ONNX Runtime MIGraphX Execution Provider. Requires ROCm and MIGraphX installed (e.g. "sudo apt install migraphx migraphx-dev half"). If no ORT library with the MIGraphX provider is found, one is automatically extracted from AMD's manylinux wheels (https://repo.radeon.com/rocm/manylinux/) matching the local ROCm version. Only float32/int32/int64 graphs are advertised as supported, and models with scalar (0-dimensional) inputs fall back to CPU execution. GOMLX_BACKEND=onnx:migraphx
  • <path/to/libonnxruntime.so>: Explicit path to the ONNX Runtime shared library file (bypasses ONNXRUNTIME_SHARED_LIBRARY_PATH). GOMLX_BACKEND=onnx:/path/to/libonnxruntime.so
  • (empty / default): Automatically detects if an NVIDIA GPU is available and defaults to CUDA, then checks for a discrete AMD GPU (ROCm/MIGraphX), falling back to CPU otherwise. GOMLX_BACKEND=onnx

ONNX Runtime Internal Logging:

  • log=<level>: Sets ONNX Runtime internal logging severity level:
  • log=0: Errors only (ERROR)
  • log=1: Warnings (WARNING)
  • log=2: Informational (INFO)
  • log=3: Verbose (VERBOSE)

Runtime Session & Threading Options:

  • intra_op_num_threads=<int>: Sets the number of threads used to parallelize execution within an operator (default: 0 = all available cores). Aliases: intraopnumthreads, intra_threads.
  • inter_op_num_threads=<int>: Sets the number of threads used to parallelize execution across independent operators (default: 0 = all available cores; only effective when execution_mode=parallel). Aliases: interopnumthreads, inter_threads.
  • execution_mode=<parallel|sequential>: Controls whether independent operators in the graph are executed sequentially or in parallel (default: sequential). Can also be passed as standalone "parallel" or "sequential". Aliases: executionmode.
  • cpu_mem_arena=<bool>: Enables or disables ONNX Runtime's CPU memory allocator arena (default: true). Setting to false prevents allocator lock contention across concurrent threads. Can also be passed as standalone "cpu_mem_arena" or "no_cpu_mem_arena". Aliases: cpumemarena.
  • mem_pattern=<bool>: Enables or disables memory pattern optimization (default: true; only available in sequential execution mode). Can also be passed as standalone "mem_pattern" or "no_mem_pattern". Aliases: mempattern.
  • graph_optimization_level=<0|1|2|3|99>: Controls ONNX Runtime graph optimization level:
  • 0 or "disable_all" / "none": Disable all graph optimizations.
  • 1 or "basic": Basic graph optimizations (constant folding, redundant node elimination).
  • 2 or "extended": Extended optimizations (operator fusions).
  • 3 or "layout": Layout optimizations.
  • 99 or "all": Enable all available optimizations. Aliases: graphoptimizationlevel, opt_level, optlevel.
  • session_clones=<int>: Maximum number of concurrent ONNX Runtime session clones pooled per compiled Executable (default: 8 on CPU, 1 on GPU). Clones are allocated lazily on demand when multiple goroutines execute concurrently, eliminating lock contention. Aliases: sessionclones, clones, session_pool, sessionpool.

Examples:

GOMLX_BACKEND="onnx:cuda,log=2"
GOMLX_BACKEND="onnx:cpu,intra_op_num_threads=1,inter_op_num_threads=1,cpu_mem_arena=false,execution_mode=parallel"

ONNX Runtime Shared Libraries & Auto-Installation ¶

The backend automatically locates or manages the required ONNX Runtime shared library (libonnxruntime.so / onnxruntime.dll):

  • Custom Library Path: Set the ONNXRUNTIME_SHARED_LIBRARY_PATH environment variable or pass an explicit library path in the configuration string (e.g. "onnx:/path/to/libonnxruntime.so") to point directly to the shared library binary. Specifying an explicit path in the configuration string bypasses ONNXRUNTIME_SHARED_LIBRARY_PATH.
  • Auto-Installation: If no library path is provided, the backend automatically downloads and extracts prebuilt official ONNX Runtime binaries locally (e.g. ~/.local/lib/onnxruntime/ on Linux).
  • Disabling Auto-Installation: Set the environment variable GOMLX_NO_AUTO_INSTALL=1 (or NoAutoInstallEnv), or call EnableAutoInstall(false) programmatically before initializing the backend to disable automatic downloads (useful for offline environments or container deployments).

AMD ROCm / MIGraphX Environment Variables ¶

The MIGraphX execution provider relies on a local ROCm installation:

  • ROCM_PATH: Directory where ROCm is installed (defaults to /opt/rocm). It is used to locate rocminfo and the HIP/MIGraphX libraries when auto-detecting an AMD GPU and its ROCm version.
  • GOMLX_MIGRAPHX_CACHE_DIR: Directory where the MIGraphX compiled-program (.mxr) for each model is cached, skipping the expensive graph compilation on subsequent runs. Equivalent to the migraphx_cache_dir config key (e.g. "onnx:migraphx,migraphx_cache_dir=/tmp/mxr"); an empty value disables caching.

Debugging & Saving Models on Failure ¶

If graph compilation or session creation fails, setting the environment variable GOMLX_ONNX_SAVE_ON_FAILURE (or SaveOnFailureEnv) to a file path instructs the ONNX backend to save the serialized ONNX model protobuf bytes to that file path for debugging and log a notification:

GOMLX_ONNX_SAVE_ON_FAILURE="/tmp/failed_model.onnx"

Inspecting & Pretty-Printing `.onnx` Files ¶

The CLI tool in `github.com/gomlx/compute-onnx/cmd/onnx_printer` pretty-prints the contents of `.onnx` model files in the terminal, displaying model metadata, input/output tensors with GoMLX shapes (shapes.Shape), initializers/constants, and graph operations on a single line per op:

go run github.com/gomlx/compute-onnx/cmd/onnx_printer path/to/model.onnx

Flags:

  • max_items / n: Controls the maximum number of constant array elements printed (default 10).
  • show_doc: Includes docstrings if present.

For interactive graphical visualization of ONNX models, `.onnx` files can also be opened using Netron (https://netron.app/).

Index ¶

Constants ¶

View Source
const (
	BackendName = "onnxruntime"
)
View Source
const NoAutoInstallEnv = "GOMLX_NO_AUTO_INSTALL"

NoAutoInstallEnv is the environment variable that, when set, disables automatic downloading and installation of prebuilt ONNX Runtime shared libraries.

View Source
const SaveOnFailureEnv = native.SaveOnFailureEnv

Variables ¶

View Source
var DefaultSessionConfig = sessionconfig.Default

DefaultSessionConfig returns a SessionConfig with all options unset (ONNX Runtime defaults).

Functions ¶

func EnableAutoInstall ¶ added in v0.1.2

func EnableAutoInstall(enable bool)

EnableAutoInstall controls whether the backend automatically downloads and installs prebuilt ONNX Runtime shared libraries if none are found.

func IsSupportedPlatform ¶

func IsSupportedPlatform() bool

IsSupportedPlatform returns true if the host OS and CPU architecture are supported by ONNX Runtime binaries.

func LoadModel ¶

func LoadModel(backend compute.Backend, r io.Reader) (compute.Executable, error)

LoadModel loads an ONNX model from an io.Reader and compiles it into a runnable compute.Executable. It parses input and output tensor shapes and data types directly from the ONNX ModelProto and creates an ONNX Runtime session ready for execution.

func MakeScalar ¶ added in v0.1.1

func MakeScalar(f *graph.Function, value any, dtype dtypes.DType) (compute.Value, error)

MakeScalar constructs a 0D scalar constant tensor in the given function.

func New ¶

func New(config string) (compute.Backend, error)

New creates a new ONNX Runtime backend instance with the given configuration string.

func ParseGOMLXBackendEnv ¶ added in v0.1.2

func ParseGOMLXBackendEnv(envVal string) (string, error)

ParseGOMLXBackendEnv parses a GOMLX_BACKEND environment variable string (e.g. "onnx:cpu", "onnx", "onnxruntime:cuda,log=2"). It verifies that the backend selection is "onnx" or "onnxruntime", strips the backend name prefix, and returns the configuration options string.

func SaveModel ¶

func SaveModel(backend compute.Backend, executable compute.Executable, w io.Writer, inputNames []string, outputNames []string) error

SaveModel exports the computation graph associated with the given executable as an ONNX model file/stream. It verifies that both backend and executable belong to the ONNX backend package. If inputNames or outputNames are provided (non-empty), they rename the graph's inputs and outputs and update all corresponding internal node edge references before saving. If inputNames or outputNames are nil or empty, default or pre-existing graph names (e.g., "arg_0", "output_0") are retained.

Note: The backend must have had KeepModelProto set to true prior to compiling the executable, otherwise SaveModel will return an error indicating that the graph proto was discarded.

Types ¶

type Backend ¶

type Backend struct {
	// contains filtered or unexported fields
}

Backend represents an ONNX Runtime backed compute.Backend.

func (*Backend) BufferFromFlatData ¶

func (b *Backend) BufferFromFlatData(deviceNum compute.DeviceNum, flat any, shape shapes.Shape) (compute.Buffer, error)

func (*Backend) Builder ¶

func (b *Backend) Builder(name string) compute.Builder

func (*Backend) Capabilities ¶

func (b *Backend) Capabilities() compute.Capabilities

func (*Backend) Config ¶ added in v0.1.4

func (b *Backend) Config() string

func (*Backend) Description ¶

func (b *Backend) Description() string

func (*Backend) DeviceDescription ¶

func (b *Backend) DeviceDescription(deviceNum compute.DeviceNum) string

func (*Backend) ExecutionProvider ¶ added in v0.1.4

func (b *Backend) ExecutionProvider() executionprovider.Type

ExecutionProvider returns the execution provider configured for the backend.

func (*Backend) Finalize ¶

func (b *Backend) Finalize()

func (*Backend) HasSharedBuffers ¶

func (b *Backend) HasSharedBuffers() bool

func (*Backend) IsFinalized ¶

func (b *Backend) IsFinalized() bool

func (*Backend) KeepModelProto ¶

func (b *Backend) KeepModelProto() bool

KeepModelProto returns whether compiled Executable instances retain their graph *onnx.ModelProto.

func (*Backend) LogSeverity ¶ added in v0.1.4

func (b *Backend) LogSeverity() int

LogSeverity returns the configured log severity level (0=verbose, 1=info, 2=warning, 3=error, 4=fatal, or -1 if not set).

func (*Backend) Name ¶

func (b *Backend) Name() string

func (*Backend) NewSharedBuffer ¶

func (b *Backend) NewSharedBuffer(deviceNum compute.DeviceNum, shape shapes.Shape) (compute.Buffer, any, error)

func (*Backend) NumDevices ¶

func (b *Backend) NumDevices() int

func (*Backend) OpsetVersion ¶ added in v0.1.38

func (b *Backend) OpsetVersion() int64

OpsetVersion returns the target ai.onnx opset version used when compiling graphs (default 21).

func (*Backend) SessionConfig ¶ added in v0.1.11

func (b *Backend) SessionConfig() SessionConfig

SessionConfig returns the session options configured for this backend.

func (*Backend) SetKeepModelProto ¶

func (b *Backend) SetKeepModelProto(keep bool)

SetKeepModelProto controls whether compiled Executable instances retain the graph *onnx.ModelProto. When set to true, executables compiled by this backend store their ONNX ModelProto struct, allowing the computation graph to be exported via SaveModel.

func (*Backend) SetOpsetVersion ¶ added in v0.1.38

func (b *Backend) SetOpsetVersion(version int64)

SetOpsetVersion overrides the target ai.onnx opset version used for subsequently compiled graphs. Values <= 0 reset to graph.DefaultOpsetVersion (21).

func (*Backend) String ¶

func (b *Backend) String() string

func (*Backend) Version ¶ added in v0.1.4

func (b *Backend) Version() string

Version returns the version of the underlying ONNX Runtime engine.

func (*Backend) WebVersion ¶ added in v0.1.4

func (b *Backend) WebVersion() string

WebVersion returns the configured web version string (e.g. "dev", "@latest", "1.27", or "").

type Buffer ¶

type Buffer = native.Buffer

type Builder ¶

type Builder = graph.Builder

Common type aliases for graph builder IR types.

type Executable ¶

type Executable = native.Executable

Type aliases for native engine types.

type Function ¶

type Function = graph.Function

type Node ¶

type Node = graph.Node

type SessionConfig ¶ added in v0.1.11

type SessionConfig = sessionconfig.Config

SessionConfig holds runtime session options (such as threading and memory settings) configured via the backend configuration string.

Directories ¶

Path Synopsis
cmd
onnx_printer command
Package main provides the onnx_printer tool to pretty-print ONNX model files.
Package main provides the onnx_printer tool to pretty-print ONNX model files.
internal
executionprovider
Package executionprovider defines the native GPU execution providers supported by the ONNX Runtime backend.
Package executionprovider defines the native GPU execution providers supported by the ONNX Runtime backend.
ort
support
protos
Package protos contains the protobuf generated code for the ONNX format.
Package protos contains the protobuf generated code for the ONNX format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL