Dot indexing is not supported for variables of this type. DAGNetwork.

Hey all! I'm working on a project that I train deep learning models and test them. I have a trained couple models on a different PC and now I'm trying to test it with my laptop. Some of the models are able to test but some of them gives an error which is below:
Dot indexing is not supported for variables of this type.
Error in DAGNetwork/classify (line 148)
iAssertNetworkHasSingleOutput( this.PrivateNetwork.NumOutputs );
Any ideas?

5 Kommentare

The most common cause for that message is if the variable is [] (empty double precision array) instead of being a correct network.
It works on the PC which I did the train but not on my macOS laptop.
I have solved the problem. I have installed Shufflenet from Deep Network Designer and now I'm able to see layers in the DAGNetwork.
If you save() an object of a class, and then you load() the object on a system that does not have a definition for that particular class, then load() will give an warning message that it could not find the class and that it loaded the data as uint8 instead.
... .but you would have seen a warning message in that case.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 15 Apr. 2023

Kommentiert:

am 23 Sep. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by