%% Check if Layer Graphs are Equal Ignoring NaN Values
% Create two instances of SqueezeNet layer graphs.

lgraph1 = squeezenet('Weights','none');
lgraph2 = squeezenet('Weights','none');

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

tf = isequaln(lgraph1,lgraph2)

% Copyright 2021 The MathWorks, Inc.