Documentation
¶
Overview ¶
Package levelzero runs a compiled OpenVINO graph on an Intel NPU through the system's Level Zero loader and the driver's ZE_extension_graph, with nothing extra to download: ze_loader.dll in System32 on Windows, with no cgo, and libze_loader.so.1 on Linux, opened with dlopen when the NPU is first asked for, so magpie starts the same on a computer without it. Everywhere else, and on a Linux build without cgo, there is no NPU and the encoder reads on the CPU.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Device string
DeviceID uint32
DriverVersion uint32
CompilerMajor uint16
CompilerMinor uint16
MaxOpset uint32
}
Info describes the NPU driver and graph compiler on this computer.
type Model ¶
type Model struct {
Device string
// contains filtered or unexported fields
}
Model is a compiled NPU graph opened on Level Zero; it is released when the last reference to it is collected.