Documentation
¶
Overview ¶
Package gobackend implements a native Go compute.Backend: very portable (including WASM) but not very fast.
It only implements the most popular dtypes and operations. But generally, it's easy to add new ops: just open an issue in GoMLX.
This package is simply a thin wrapper around internal/gobackend.
Index ¶
Constants ¶
const BackendName = "go"
BackendName to be used in GOMLX_BACKEND to specify this backend.
Variables ¶
var GetBackend = sync.OnceValue(func() compute.Backend { backend, err := New("") if err != nil { panic(err) } return backend })
GetBackend returns a singleton Go backend, created with the default configuration. The backend is only created at the first call of the function.
The singleton is never destroyed.
Functions ¶
Types ¶
This section is empty.