fromBufferAsync static method

Future<CompiledModel> fromBufferAsync(
  1. Uint8List bytes, {
  2. Set<Accelerator> accelerators = const {Accelerator.cpu},
  3. Precision precision = Precision.fp16,
  4. 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.');
}