%% Import ONNX Network Architecture
% Import the architecture and weights of a residual neural network trained on the CIFAR-10 data set. Specify the file containing the ONNX network and the type of the output layer to add to the imported network.

modelfile = 'cifarResNet.onnx';
lgraph = importONNXLayers(modelfile, ...
    'OutputLayerType','classification', ...
    'ImportWeights',true)

% Analyze the imported network architecture.

analyzeNetwork(lgraph)

%
% Copyright 2018 The MathWorks, Inc.