isAvailable property
bool
get
isAvailable
Whether the kernels can be called: built for this platform by the build hook (or already opened from a path), and this CPU has the int8 dot product they are compiled for. Check it before anything else of the library runs: without the dot product, the kernels stop the app on an illegal instruction.
Implementation
static bool get isAvailable {
try {
return _cpuSupported() == 1;
} on ArgumentError {
return false;
}
}