You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gt = torch.randint(low=0, high=10, size=(8, 32, 32)).cuda()
pred = torch.rand(size=(8, 10, 32, 32)).cuda()
recal_ce = RecallCrossEntropy(n_classes=10)
L = recal_ce(pred, gt)
throws a runtime error
> gt_count[gt_idx == self.ignore_index] = gt_count[1]
E RuntimeError: unsupported operation: some elements of the input tensor and the written-to tensor refer to a single memory location. Please clone() the tensor before performing the operation.
Using Python 3.10
The text was updated successfully, but these errors were encountered:
Hi. This simple test with the Recall CE
throws a runtime error
Using Python 3.10
The text was updated successfully, but these errors were encountered: