coreml

package
v0.1.5708 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 1 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

View Source
const Available = false

Available says CoreML is here: only on an Apple silicon Mac (coreml_darwin.go). An Intel Mac reads on the CPU: there CoreML failed every window in Espresso, and each was read on the CPU again (#8586).

Variables

View Source
var Devices = [3]string{"Neural Engine", "GPU", "CPU"}

Devices are the devices a plan places operations on, in gmlPlan's order.

Functions

func Compile

func Compile(pkg, out string) error

func Most added in v0.1.1997

func Most(shares [3]float64) string

Most is the device of shares with the largest, "" with none.

func Plan added in v0.1.1997

func Plan(path string) ([3]float64, error)

Types

type Model

type Model struct {
	Device    string
	DeviceErr error
}

func Open

func Open(path string) (*Model, error)

func (*Model) Run

func (*Model) Run(x, mask []float32, s, h, k int) ([]float32, error)

Jump to

Keyboard shortcuts

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