onnx network import fails
4 次查看(过去 30 天)
显示 更早的评论
I'm trying to import an ONNX network created with pytorch (using opset 9).
I use the following command
net = importONNXNetwork('cql_policy_ep5_opset9.onnx','OutputLayerType','classification')
but this returns the error:
Unable to resolve the name nnet.internal.cnn.onnx.NodeTranslationPlacholder.
Error in nnet.internal.cnn.onnx.translateGemm (line 27)
issues = [issues nnet.internal.cnn.onnx.NodeTranslationPlacholder(node,...
Error in nnet.internal.cnn.onnx.translateONNX (line 145)
[layer, layerIssues] = nnet.internal.cnn.onnx.translateGemm(thisNode,initializerDimMap,initializerRawDataMap,LayerName,ImportWeights, inputLayerTypeEnum,
OpsetVersion);
Error in nnet.internal.cnn.onnx.importONNXNetwork (line 11)
[LayersOrGraph, translationIssues] = nnet.internal.cnn.onnx.translateONNX(modelProto, OutputLayerType, UserImageInputSize, true);
Error in importONNXNetwork (line 52)
Network = nnet.internal.cnn.onnx.importONNXNetwork(modelfile, varargin{:});
Any ideas how to fix this?
Thanks
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!