fromBuffer static method

CompiledModel fromBuffer(
  1. Uint8List bytes, {
  2. Set<Accelerator> accelerators = const {Accelerator.cpu},
  3. Precision precision = Precision.fp32,
  4. TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
})

Creates a compiled model from model bytes.

Implementation

static CompiledModel fromBuffer(
  Uint8List bytes, {
  Set<Accelerator> accelerators = const {Accelerator.cpu},
  Precision precision = Precision.fp32,
  TensorBufferMode tensorBufferMode = TensorBufferMode.managed,
}) {
  throw UnsupportedError('CompiledModel is not supported on this platform.');
}