Net.fromOnnxBytes constructor

Net.fromOnnxBytes(
  1. Uint8List bufferModel
)

Implementation

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