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