def clone(self, name: str = None, **new_static_kwargs) -> "Network":
        """Create a clone of this network with its own copy of the variables."""
        static_kwargs = dict(self.static_kwargs)
        static_kwargs.update(new_static_kwargs)
        net = object.__new__(Network)
        net._init_fields(name=(name or self.name), static_kwargs=static_kwargs, build_func=self._build_func, build_func_name=self._build_func_name, build_module_src=self._build_module_src)
        net.copy_vars_from(self)
        return net
Create a clone of this network with its own copy of the variables.
converters/stylegan2ada_tf_official/dnnlib/tflib/network.py