You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please indicate relevant versions, including, if relevant:
DL4J
Additional Information
params(boolean) method states that if backwardsOnly=false, you do NOT get a copy, and changes to the given variable will change the underlying network. The code is opposite of that, in fact if you pass false, you get a fresh copy unrelated to the pointer inside the original network it was created in.
Contributing
I'll be happy to submit a PR if you'll tell me what you'd like done
The text was updated successfully, but these errors were encountered:
This impacts both MultiLayerNetwork and ComputationGraph.
The javadoc does indeed not match the behaviour.
Thinking about this, I'm thinking we should simply remove that params(boolean) method entirely. I don't think it's particularly useful at this point. The no-args params() method is useful, and the paramTable() method is also useful. For most nets, params() and params(boolean) will be the same. For nets with autoencoder, VAE etc layers, the params(boolean) method is supposed to cut out the decoder weights/bias - but there's almost nothing you can actually use that vector for in practice (maybe transfer learning, but it's safer and less error prone to use paramTable() I think).
Issue Description
Documentation error/typo
Version Information
Latest
Please indicate relevant versions, including, if relevant:
DL4J
Additional Information
params(boolean) method states that if backwardsOnly=false, you do NOT get a copy, and changes to the given variable will change the underlying network. The code is opposite of that, in fact if you pass false, you get a fresh copy unrelated to the pointer inside the original network it was created in.
Contributing
I'll be happy to submit a PR if you'll tell me what you'd like done
The text was updated successfully, but these errors were encountered: