Failure to export BiLSTM series network to ONNX

조회 수: 1 (최근 30일)
Matlab User
Matlab User 2021년 1월 4일
답변: Sivylla Paraskevopoulou 2022년 5월 9일
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{:});

답변 (1개)

Sivylla Paraskevopoulou
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.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by