def to_tensor(self) -> 'MultilevelPixelData':
        """Convert all tensor to np.narray in data."""
        return self._convert(
            apply_to=np.ndarray, func=lambda x: torch.from_numpy(x))
Convert all tensor to np.narray in data.
mmpose/mmpose/structures/multilevel_pixel_data.py