torch_accuracy

probly.metrics.torch.torch_accuracy(y_pred: Tensor, y_true: Tensor) Tensor[source]

Compute top-1 classification accuracy for PyTorch tensors.