def to(self, device: torch.device):
        """
        Transfers all tensors to the given device
        """
        labels = self.labels.to(device)
        uv = self.uv.to(device)
        return DensePoseChartResult(labels=labels, uv=uv)

        Transfers all tensors to the given device
        
EVA-02/det/projects/DensePose/densepose/structures/chart_result.py