def copy(self) -> "ParameterDict":
        """Returns a copy of this :class:`~nn.ParameterDict` instance."""
        # We have to use an OrderedDict because the ParameterDict constructor
        # behaves differently on plain dict vs OrderedDict
        return ParameterDict(OrderedDict((k, self[k]) for k in self._keys))
Returns a copy of this :class:`~nn.ParameterDict` instance.
python/aitemplate/frontend/nn/container.py