Failure to export BiLSTM series network to ONNX

1 view (last 30 days)
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{:});

Answers (1)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou on 9 May 2022
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.

Community Treasure Hunt

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

Start Hunting!