Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 Changes in this version + var ErrExecutionFailed = errors.New("engine: execution failed") + var ErrMissingInput = errors.New("engine: missing input") + var ErrQ8SidecarInvalid = errors.New("engine: invalid Q8 sidecar") + var ErrValidationFailed = errors.New("engine: validation failed") + func LoadAndRun(modelPath string, inputs map[string]*tensor.Tensor) (map[string]*tensor.Tensor, error) + func SidecarPathFor(modelPath string) string + func WriteQ8Sidecar(path string, entries []Q8SidecarEntry) error + type Engine struct + func New(modelPath string, opts ...Option) (*Engine, error) + func NewFromBytes(data []byte, opts ...Option) (*Engine, error) + func (e *Engine) Close() error + func (e *Engine) InputNames() []string + func (e *Engine) MaxConvParams() (maxInChannels, maxOutChannels, maxKernelH, maxKernelW int) + func (e *Engine) Run(inputs map[string]*tensor.Tensor) (map[string]*tensor.Tensor, error) + func (e *Engine) ValidationReport() *validate.ValidationReport + type Option func(*Engine) error + func WithProviders(providers ...provider.ExecutionProvider) Option + func WithValidation(opts ...validate.Option) Option + type Q8SidecarEntry struct + Blocks []byte + BlocksPerRow int + Name string + Shape []int + func ReadQ8Sidecar(path string) ([]Q8SidecarEntry, error)