%% Check if Networks are Equal Ignoring NaN Values
% Create two instances of a pretrained SqueezeNet network.

net1 = squeezenet;
net2 = squeezenet;

% Check if the networks are equal ignoring NaN values using the isequaln function.

tf = isequaln(net1,net2)

% Copyright 2021 The MathWorks, Inc.