sessionconfig

package
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: 0 Imported by: 0 modules, 0 packages

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IntraOpNumThreads      int    // Number of threads for intra-op parallelism (-1: unset/default)
	InterOpNumThreads      int    // Number of threads for inter-op parallelism (-1: unset/default)
	CpuMemArena            *bool  // Enable or disable CPU memory arena (nil: unset/default)
	MemPattern             *bool  // Enable or disable memory pattern optimization (nil: unset/default)
	ExecutionMode          string // "parallel" or "sequential" ("": unset/default)
	GraphOptimizationLevel int    // Graph optimization level (0=disable, 1=basic, 2=extended, 99=all, -1: unset/default)
	SessionClones          int    // Max concurrent session clones in the pool (<=0: unset/default)
}

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

func Default

func Default() Config

Default returns a Config with all options unset (indicating ONNX Runtime defaults).

Jump to

Keyboard shortcuts

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