I've set up a model for CIFAR-10 using Pytorch, and saved it as an ONNX file.
But it looks like I can't load it from CNTK.
I've already loaded another ONNX file from the same source code (by mistake), so the dependencies look OK. The problem occurs when I call Function.Load()
var deviceDescriptor = DeviceDescriptor.CPUDevice; ;
var function = Function.Load(ONNX_PATH, deviceDescriptor, ModelFormat.ONNX);
I get this exception (Unhandled exception):
System.ApplicationException : 'Reshape: inferred dimension cannot be calculated from input and new shape size. [CALL STACK] - CNTK::TrainingParameterSchedule:: GetMinibatchSize - CNTK:: XavierInitializer (x6) - CNTK::Function::Load - CSharp_CNTK_Function__Load__SWIG_0 - 00007FFB0C41C307 (SymFromAddr() error: Le module spécifié est introuvable.)