How to combine the states of a custom stateful layer with a stateful nested sub-network?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
John Smith
am 22 Nov. 2022
Beantwortet: John Smith
am 29 Nov. 2022
Hello,
I have a stateful custom layer with a statful nested sub-network.
In my predict method I call predict on the sub-network and obtain the resulting state. Then I do some computation and obtain the state of the custom layer. Now, I'm supposed to return the state of the layer and assign it back to net.State property.
But I have two states - that of the layer and that of the sub-network. How to handle this situation?
Thx,
J
2 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows 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!