Problem With Deep Learning Toolbox

Im trying to open the Deep Learning Toolbox. The following error is returned:
Error using deepNetworkDesigner (line 29)
Invalid default value for property 'Network' in class 'deepapp.internal.editor.import.NoArgsCallStrategy':
Undefined function 'mtimes' for input arguments of type 'nnet.cnn.layer.Layer'.
Similarly while calling a pretianed network in a code, following error is returned:
lgraphGoogLeNet = layerGraph(googlenet);
Warning: While loading an object of class 'DAGNetwork':
Too many input arguments.
Dot indexing is not supported for variables of this type.
Error in DAGNetwork/get.LayerGraph (line 188)
val = this.PrivateNetwork.LayerGraph;
Error in DAGNetwork/getLayerGraph (line 230)
layerGraph = this.LayerGraph;
Error in DAGNetwork/layerGraph (line 12)
internalLayerGraph = this.getLayerGraph();

8 件のコメント

Walter Roberson
Walter Roberson 2024 年 7 月 14 日
The most common cause for this kind of problem, is if you have third-party functions with the same name as Mathworks-provided functions.
Sometimes it helps to use
restoredefaultpath; rehash toolboxcache
Nitish
Nitish 2024 年 7 月 15 日
編集済み: Nitish 2024 年 7 月 15 日
Hi, thanks for the reply. I tried this fix, but it didnt work out.
Already I have done the fresh installation, but the same error is repeated.
Peter Man
Peter Man 2024 年 7 月 15 日
編集済み: Peter Man 2024 年 7 月 15 日
Hi,
Can you help us diagnose the issue by telling us the answers to the following:
  • What version of MATLAB are you using?
  • What is the output of the following call:
layerGraph()
  • What is the output of the following call:
which layerGraph
It's possible that there's something shadowing the layerGraph function.
  • Do you have a startup.m script? If so, is it possible to try removing that startup.m script, just to see if that fixes things? It's possible there's something in the startup script which shadows the layerGraph() constructor function.
Thanks.
Nitish
Nitish 2024 年 7 月 15 日
編集済み: Nitish 2024 年 7 月 15 日
Hi @Peter Man, thanks
Im using Matlab 2024a.
Upon using the above commands, got the following:
>> layerGraph()
Operator '*' is not supported for operands of type 'nnet.cnn.layer.Layer'.
Error in layerGraph (line 46)
throw(me)
>> which layerGraph
C:\Program Files\MATLAB\R2024a\toolbox\nnet\cnn\layerGraph.m
I have removed the startup.m also, again getting the same response as above.
Torsten
Torsten 2024 年 7 月 15 日
編集済み: Torsten 2024 年 7 月 15 日
What's the output of
which -all layerGraph
?
I'm quite sure you have another file called "layerGraph.m" on your MATLAB path that is different from the toolbox file. Rename this file.
Or did you edit and made changes to the toolbox file ?
Peter Man
Peter Man 2024 年 7 月 15 日
Interesting.
Could you now try calling the following:
layerGraph()
getReport(MException.last)
Alternatively, you could put a breakpoint at line 46 of C:\Program Files\MATLAB\R2024a\toolbox\nnet\cnn\layerGraph.m and call getReport(me) ?
This will help us identify where the error is being thrown from. But currently I'm at a loss as to why we are seeing this error at all given that a fresh install was performed (and I'm assuming no third party addons were installed as part of the fresh install?).
Nitish
Nitish 2024 年 7 月 15 日
The output for which -all layerGraph is
>> which -all layerGraph
C:\Program Files\MATLAB\R2024a\toolbox\nnet\cnn\layerGraph.m
C:\Program Files\MATLAB\R2024a\toolbox\nnet\cnn\@DAGNetwork\layerGraph.m % DAGNetwork method
and the output for getReport()
getReport(MException.last)
ans =
'Operator '*' is not supported for operands of type 'nnet.cnn.layer.Layer'.
Error in layerGraph (line 46)
throw(me)'
Thank you for your replies.
Peter Man
Peter Man 2024 年 7 月 15 日
Ah, sorry, getReport(MException.last) won't do - my bad. Try putting a breakpoint as I suggested previously.

サインインしてコメントする。

回答 (1 件)

Nitish
Nitish 2024 年 7 月 15 日
移動済み: Walter Roberson 2024 年 7 月 15 日

0 投票

@Peter Man Thanks a lot Sir.
I have been able to fix it, there as a function height.m in the current working directory. I renamed it.
Thanks a lot.

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

製品

リリース

R2024a

質問済み:

2024 年 7 月 14 日

移動済み:

2024 年 7 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by