https://www.mathworks.com/help/deeplearning/ug/solve-partial-differential-equations-with-lbfgs-method-and-deep-learning.html
The example 'Solve Partial Differential Equation with LBFGS Method and Deep Learning' doesn't work because the supporting file 'paramsStructToVector' function.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
parametersV = zeros(numParamsTotal,1,'like',parameters.(parameterNames{1}));
The main reason is this code.'parameters.(parameterNames{1})' is a struct lead to the zeros function input specification is not met
Akzeptierte Antwort
James Gross
am 24 Okt. 2022
Hello,
The paramsStructToVector helper function converts a struct of learnable parameters to a vector. However, it looks like you have specified parametersV as a vector using zeros.
You will need to specify this variable as a struct before you can use this helper function. The parameterVectorToStruct helper function can be used to convert a vector of parameters with specified names and sizes to a struct.
I hope this information helps! If you need more assistance, could you please confirm if the example as written (i.e. without modification) works on your machine and if you have modified the example in any way? If so, could you please provide additional information as to how you have modified the example (perhaps some example code)?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Signal Integrity Kits for Industry Standards finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!