fromCaffeBytesAsync static method

Future<Net> fromCaffeBytesAsync(
  1. Uint8List bufferProto,
  2. Uint8List bufferModel
)

Implementation

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