Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2026 Changes in this version + var ErrUnsupported = errors.New("coreml: only macOS has Core ML") + func Compile(src, dst string) error — darwin/amd64 + func Compile(string, string) error — js/wasm, linux/amd64, windows/amd64 + type Feature struct + Height int + Kind Kind + Name string + Width int + type Kind int + const KindImage + const KindMultiArray + const KindOther + func (k Kind) String() string + type Model struct + func Open(path string, units Units) (*Model, error) + func Open(string, Units) (*Model, error) + func (m *Model) Close() + func (m *Model) Inputs() []Feature + func (m *Model) Outputs() []Feature + func (m *Model) Predict(in map[string]Value) (*Result, error) + func (m *Model) Predict(map[string]Value) (*Result, error) + type Plane struct + Height int + Values []float32 + Width int + func (p Plane) Normalised() []byte + type Result struct + func (r *Result) Close() + func (r *Result) Plane(name string) (Plane, error) + func (r *Result) Plane(string) (Plane, error) + type Units int + const All + const CPUAndGPU + const CPUAndNeuralEngine + const CPUOnly + type Value struct + func Image(bgra []byte, width, height int) Value