fromBufferWithGpuFallback static method
CompiledModel
fromBufferWithGpuFallback(
- Uint8List bytes, {
- bool forceCpu = false,
- Precision precision = Precision.fp32,
- TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
- void onFallback(
- Object error
Creates a compiled model from bytes, preferring GPU with a CPU fallback.
Implementation
static CompiledModel fromBufferWithGpuFallback(
Uint8List bytes, {
bool forceCpu = false,
Precision precision = Precision.fp32,
TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
void Function(Object error)? onFallback,
}) {
throw UnsupportedError('CompiledModel is not supported on this platform.');
}