[TF optimizers (v1)] Non-slot variables are ResourceVariables iff the input vars are.
This fixes a bug where Adam beta*_power variables were always created as RefVars even if the optimizer acts on ResourceVars. This broke certain defun + Adam use cases. Also fixed the unit tests, which *always* created ResourceVariables (ever since variables.Variable() constructor became aliased to ResourceVariables). PiperOrigin-RevId: 224869338
Loading
Please sign in to comment