MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / forward

Method forward

mmdet/models/losses/accuracy.py:69–79  ·  view source on GitHub ↗

Forward function to calculate accuracy. Args: pred (torch.Tensor): Prediction of models. target (torch.Tensor): Target for each prediction. Returns: tuple[float]: The accuracies under different topk criterions.

(self, pred, target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

accuracyFunction · 0.85

Tested by

no test coverage detected