Failure to export BiLSTM series network to ONNX
1 次查看(过去 30 天)
显示 更早的评论
I have been trying to export a BiLSTM series network using the exportONNXNetwork function but keep getting the errors listed below. Does any one have any ideas how I can export a MATLAB trained BiLSTM deep network for use in other platforms?
Thanks
>> exportONNXNetwork(net,'Net.onnx');
Error using nnet.internal.cnn.onnx.exportONNXNetwork>iValidateNetwork (line 62)
First argument must be a SeriesNetwork, DAGNetwork, dlnetwork, or layerGraph.
Error in nnet.internal.cnn.onnx.exportONNXNetwork>iValidateInputs (line 53)
NNTNetwork = iValidateNetwork(NNTNetwork);
Error in nnet.internal.cnn.onnx.exportONNXNetwork (line 29)
[NNTNetwork, Filename, NetworkName, OpsetVersion] = iValidateInputs(NNTNetwork,
Filename, defaultOpset, varargin{:});
Error in exportONNXNetwork (line 40)
nnet.internal.cnn.onnx.exportONNXNetwork(Network, filename, varargin{:});
0 个评论
回答(1 个)
Sivylla Paraskevopoulou
2022-5-9
It seems that your network net is not one of the supported network or layer graph objects. For more information, see the net input argument of exportONNXNetwork function. You can use the analyzeNetwork function to detect errors and warnings in your network prior to exporting.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!