Net.fromOnnxBytes constructor

Net.fromOnnxBytes(
  1. Uint8List bufferModel
)

Implementation

factory Net.fromOnnxBytes(Uint8List bufferModel) {
  final p = calloc<cvg.Net>();
  final bufM = VecUChar.fromList(bufferModel);
  cvRun(() => cffi.Net_ReadNetFromONNXBytes(bufM.ref, p));
  final net = Net._(p);
  return net;
}