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()])
Reset internal state of the underlying optimizer.
converters/stylegan2_official/dnnlib/tflib/optimizer.py