'Build top-k accuracy, comparing top-k predictions and targets.'

def build(self, predictions, targets, inputs=None):

    self.built = True
    self.tensor = top_k_op(predictions, targets, self.k)
    self.tensor.m_name = self.name
