fromTFLiteBytesAsync static method

Future<Net> fromTFLiteBytesAsync(
  1. Uint8List bufferModel
)

Implementation

static Future<Net> fromTFLiteBytesAsync(Uint8List bufferModel) async {
  final bufM = VecUChar.fromList(bufferModel);
  final rval = await cvRunAsync<Net>(
      (callback) => cdnn.Net_ReadNetFromTFLiteBytes_Async(bufM.ref, callback), (c, p) {
    return c.complete(Net.fromPointer(p.cast<cdnn.Net>()));
  });
  return rval;
}