(self)
Reset internal state of the underlying optimizer.
Reset internal state of the underlying optimizer.
Reset internal state of the underlying optimizer .
def reset_optimizer_state(self) -> None:
        """Reset internal state of the underlying optimizer."""
        tfutil.assert_tf_initialized()
        tfutil.run([var.initializer for device in self._devices.values() for var in device.optimizer.variables()])
def reset_optimizer_state ( self ) -> None : tfutil . assert_tf_initialized ( ) tfutil . run ( [ var . initializer for device in self . _devices . values ( ) for var in device . optimizer . variables ( ) ] )