after training network. unable to load network after restarting matlab. matlab version is 2021a

4 views (last 30 days)
Warning: Unable to load instances of class layer.mishLayer into a heterogeneous
array. The definition of layer.mishLayer could be missing or contain an error.
Default objects will be substituted.
Warning: While loading an object of class 'nnet.cnn.LayerGraph':
Array indices must be positive integers or logical values.
Warning: While loading an object of class 'dlnetwork':
Dot indexing is not supported for variables of this type.

Answers (1)

Yash
Yash on 9 Jan 2025
This warning typically arises when the network uses custom layers that are not on the path. Adding the customer layer(s) to MATLAB path should resolve the warning. Additionally, it may occur due to a version mismatch between MATLAB in which the network was trained and the version in which it is being loaded, as discussed in this post.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!