error while running graph=layerGraph(net)
显示 更早的评论
graph = layerGraph(net);
Error using layerGraph
lgraph = layerGraph(net);
↑
Invalid argument at position 1. Input must be an array of layers, a SeriesNetwork, a DAGNetwork, or a dlnetwork.
2 个评论
Matt J
2023-5-14
So what's the question? Presumably your 'net' input is none of the the legal input types listed in the error message.
Tan
2023-5-14
编辑:Walter Roberson
2023-5-14
回答(1 个)
Matt J
2023-5-14
Like I said, your 'net' is not one fo the types listed in the error message:
net = googlenet('Weights','none');
net =
LayerGraph with properties:
Layers: [144×1 nnet.cnn.layer.Layer]
Connections: [170×2 table]
InputNames: {'data'}
OutputNames: {'output'}
4 个评论
Tan
2023-5-14
Walter Roberson
2023-5-14
By now, R2023a, googlenet() returns DAGNetwork and the R2023a layerGraph() is happy with it.
In R2020b, googlenet() is documented as returning DAGNetwork and the error message implies layerGraph in that version should accept it.
Tan
2023-5-14
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!