TopKScoreConsumer
- class TopKScoreConsumer(k: int = 3, device: str | device | None = None)[source]
Bases:
ScoreConsumer
Collect top-k triples & scores.
Initialize the consumer.
- Parameters:
Attributes Summary
Methods Summary
__call__
(batch, target, scores)Consume scores for the given hr_batch.
Attributes Documentation
Methods Documentation