This PR enables hiding sub-modules in a container without having to set dpnn_getParameters_found on all sub-modules by checking to see if the root has already been searched.
Additionally, this change makes it so that calling getParameters does not unset the user's dpnn_getParameters_found = true on the modules containing the hidden modules (i.e. those that are, themselves, not hidden and therefore placed in con.modules). This prevents a second call to getParameters from revealing what should be hidden.
This PR enables hiding sub-modules in a container without having to set
dpnn_getParameters_found
on all sub-modules by checking to see if the root has already been searched. Additionally, this change makes it so that callinggetParameters
does not unset the user'sdpnn_getParameters_found = true
on the modules containing the hidden modules (i.e. those that are, themselves, not hidden and therefore placed incon.modules
). This prevents a second call togetParameters
from revealing what should be hidden.An alternative but possibly less straightforward implementation is https://github.com/nhynes/dpnn/commit/3778197b54d97d7cfa6acc490303823b8d82f47a.