Discover Packages
github.com/tmc/apple
x
coremlconfig
package
Version:
v0.6.15
Opens a new window with list of versions in this module.
Published: Jun 27, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: ? 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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package coremlconfig provides compute plan analysis and model
configuration for CoreML models.
Load a compute plan from a compiled model bundle to inspect which
operations target the ANE, GPU, or CPU:
plan, err := coremlconfig.LoadPlan("model.mlmodelc", coremlconfig.PlanOptions{})
if err != nil {
log.Fatal(err)
}
for _, op := range plan.Operations() {
fmt.Printf("%-20s device=%-4s cost=%.3f\n",
op.Name, op.Device, op.Cost)
}
PlanOptions.ComputeUnits controls the target compute unit selection
(default: all available units including ANE).
Model Configuration ¶ [NewConfig] creates an MLModelConfiguration with helpers for
compute unit selection and private ANE compiler options.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.