DAGNetwork showing no properties.

2 views (last 30 days)
faran
faran on 15 May 2020
Commented: faran on 20 May 2020
Hello everyone,
I have a model and I load in on two matlabs one 2019b and one 2018b on two systems. For loading the model on Matlab 2019b, it shows the layers and everything but for Matlab 2018b it shows "DAGNetwork with no properties." and there is no info for layers and connection.
Can anyone tell me what is the issue?!
Thanks
  2 Comments
Asvin Kumar
Asvin Kumar on 18 May 2020
Can you please provide a way to reproduce this issue?
If your reproduction steps don't already include them, please provide details on how you're importing/loading and preferably what you're importing/loading too.
faran
faran on 18 May 2020
Hi Asvin,
I have the model as ".mat" file and load it like this:
Matlab 2019a:
>> NetworkModel = load(modelpath, '-mat');
>> NetworkModel.net
ans =
DAGNetwork with properties:
Layers: [52×1 nnet.cnn.layer.Layer]
Connections: [55×2 table]
MAtlab 2018b:
>> NetworkModel = load(modelpath, '-mat');
>> NetworkModel.net
ans =
DAGNetwork with no properties.
on 2018b I get this warning too:
Warning: While loading an object of class 'nnet.cnn.layer.ImageInputLayer':
Reference to non-existent field 'IsAverageImageMeanPerChannel'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'DAGNetwork':
Dot indexing is not supported for variables of this type.

Sign in to comment.

Accepted Answer

Asvin Kumar
Asvin Kumar on 19 May 2020
Here are the explanations for the three different types of warnings you’re seeing.
Reference to non-existent field 'IsAverageImageMeanPerChannel'.
---> ‘IsAverageImageMeanPerChannel’ was introduced in R2019a [Link to a similar Question]
Reference to non-existent field 'Cropping'.
---> ‘Cropping’ was replaced by Croppingsize in R2019a [Link to Release Notes]
Dot indexing is not supported for variables of this type.
---> As for the dot indexing not being supported, this is a known behaviour. There was a change in the representation of Network Layers from R2018b to R2019a. Models created in R2018b should work fine in R2019a but the other way around will have issues.
  1 Comment
faran
faran on 20 May 2020
Thank you Asvin. I installed 2019 for the other machine.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!