onnx

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterPreter

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

func NewInterPreter

func NewInterPreter(session *ort.DynamicAdvancedSession,
	inputInfo []ort.InputOutputInfo,
	outputInfo []ort.InputOutputInfo,
) *InterPreter

func (*InterPreter) GetEmptyOutputTensors

func (ip *InterPreter) GetEmptyOutputTensors() ([]ort.ArbitraryTensor, error)

func (*InterPreter) GetInputTensorCount

func (ip *InterPreter) GetInputTensorCount() int

type OnnxFunc

type OnnxFunc struct{}

func (*OnnxFunc) Exec

func (f *OnnxFunc) Exec(ctx api.FunctionContext, args []any) (any, bool)

func (*OnnxFunc) IsAggregate

func (f *OnnxFunc) IsAggregate() bool

func (*OnnxFunc) Validate

func (f *OnnxFunc) Validate(args []interface{}) error

Validate the arguments. args[0]: string, model name which maps to a path args[1 to n]: tensors

Jump to

Keyboard shortcuts

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