def reset_own_vars(self) -> None:
        """Re-initialize all variables of this network, excluding sub-networks."""
        if self._var_inits is None or self._components is None:
            tfutil.run([var.initializer for var in self._get_own_vars().values()])
        else:
            self._var_inits.clear()
            self._all_inits_known = False
Re-initialize all variables of this network, excluding sub-networks.
converters/stylegan2ada_tf_official/dnnlib/tflib/network.py