fromTFLiteAsync static method

Future<Net> fromTFLiteAsync(
  1. String path
)

Implementation

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