def pin_memory_(self):
        """In-place operation to copy the feature store to pinned memory.
        Returns the same object modified in-place."""
        if is_wsl():
            gb_warning(
                "In place pinning is not supported on WSL. "
                "Returning the out of place pinned `TorchBasedFeatureStore`."
            )
            return self.to("pinned")
        for feature in self._features.values():
            feature.pin_memory_()

        return self
In-place operation to copy the feature store to pinned memory.
        Returns the same object modified in-place.
python/dgl/graphbolt/impl/torch_based_feature_store.py