InTopKΒΆ
Outputs whether the targets are in the top K predictions.
Abstract Signature:
InTopK(targets: Tensor, predictions: Tensor, k: int)
PyTorch
API:
βStrategy: Plugin (in_top_k_plugin)
JAX (Core)
API:
βStrategy: Plugin (in_top_k_plugin)
Flax NNX
API:
βStrategy: Plugin (in_top_k_plugin)
PaxML / Praxis
API:
βStrategy: Plugin (in_top_k_plugin)