fromBufferAsync static method
Future<CompiledModel>
fromBufferAsync(
- Uint8List bytes, {
- Set<
Accelerator> accelerators = const {Accelerator.cpu}, - Precision precision = Precision.fp16,
- TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
Creates a compiled model from model bytes without requiring synchronous compilation.
Implementation
static Future<CompiledModel> fromBufferAsync(
Uint8List bytes, {
Set<Accelerator> accelerators = const {Accelerator.cpu},
Precision precision = Precision.fp16,
TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
}) {
throw UnsupportedError('CompiledModel is not supported on this platform.');
}