I was struggling with this too. It turns out thereThere are functions in the Estimator class that handle this, namely: get_variable_names
and get_variable_value
.
I guess they want to avoid polluting the global scope. Note that you can pass a name
parameter to your layers on creation to disambiguate them.