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 Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by