fromTensorflowAsync static method
Implementation
static Future<Net> fromTensorflowAsync(String path, {String config = ""}) async {
final cpath = path.toNativeUtf8().cast<ffi.Char>();
final cconf = config.toNativeUtf8().cast<ffi.Char>();
final rval = await cvRunAsync<Net>(
(callback) => cdnn.Net_ReadNetFromTensorflow_Async(cpath, cconf, callback), (c, p) {
return c.complete(Net.fromPointer(p.cast<cdnn.Net>()));
});
calloc.free(cpath);
calloc.free(cconf);
return rval;
}