fromTensorflowBytesAsync static method
Implementation
static Future<Net> fromTensorflowBytesAsync(Uint8List bufferModel, {Uint8List? bufferConfig}) async {
bufferConfig ??= Uint8List(0);
final bufM = VecUChar.fromList(bufferModel);
final bufC = VecUChar.fromList(bufferConfig);
final p = calloc<cvg.Net>();
return cvRunAsync0(
(callback) => cdnn.cv_dnn_Net_readNetFromTensorflowBytes(bufM.ref, bufC.ref, p, callback), (c) {
final net = Net.fromPointer(p);
return c.complete(net);
});
}