Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotImplemented = errors.Errorf("ONNX support disabled: build with -tags=onnx")
ErrNotImplemented is returned when the package is built without the onnx build tag.
Functions ¶
Types ¶
type Executable ¶
type Executable struct{}
Executable represents a loaded ONNX model executable when ONNX support is disabled.
func LoadFromFile ¶
func LoadFromFile(backend compute.Backend, filePath string) (*Executable, error)
LoadFromFile returns ErrNotImplemented when -tags=onnx is not set.
func (*Executable) Call ¶
func (e *Executable) Call(inputs ...any) ([]*tensors.Tensor, error)
Call returns ErrNotImplemented when -tags=onnx is not set.
func (*Executable) Finalize ¶
func (e *Executable) Finalize()
Finalize is a no-op when ONNX support is disabled.