API REFERENCE
Useful links for Colossal-AI
Accuracy for 2p5D parallelism
Calculate the accuracy of predicted labels.
logits (torch.tensor) – Predicted labels.
torch.tensor
targets (torch.tensor) – True labels from data.
the accuracy of prediction.
float