class_docstr: Computes how often integer targets are in the top `K` predictions.
  
  Usage:
  
  ```python
  pred = torch.tensor([[0.1, 0.9, 0.8, 0.4, 0.5, 0.2],
                     [0.05, 0.95, 0, 0.4, 0.5, 0.2]])
  target = torch.tensor([2, 2])
  top5acc = Top5Accuracy()
  top5acc(pred, target)
  assert top5acc.compute() == 0.5
  ```
class_docstr_tok: ["Computes","how","often","integer","targets","are","in","the","top","`","K","`","predictions",".","Usage",":","``","`","python","pred","=","torch.tensor","(","[","[","0.1",",","0.9",",","0.8",",","0.4",",","0.5",",","0.2","]",",","[","0.05",",","0.95",",","0",",","0.4",",","0.5",",","0.2","]","]",")","target","=","torch.tensor","(","[","2",",","2","]",")","top5acc","=","Top5Accuracy","(",")","top5acc","(","pred",",","target",")","assert","top5acc.compute","(",")","==","0.5","``","`"]
code: def compute(self):
      return self.correct.float() / self.total
  
imports: import torch
  from abc import ABC, abstractmethod
label_desc: Use image node_id 3 for calling the Top5Accuracy obj's underlying member method code with example usage: obj.compute() and returns: unknown