|
pulsatrix
|
Top-k selection along a tensor's last dimension, on any device (roadmap FND-3). More...

Go to the source code of this file.
Classes | |
| struct | pulsatrix::TopKResult |
| top_k()'s result: the selected values and their positions along the last dimension. More... | |
Namespaces | |
| namespace | pulsatrix |
Functions | |
| TopKResult | pulsatrix::top_k (const Tensor &input, int64_t k, bool largest=true) |
| Selects the k largest (or smallest) entries of every row along the last dimension. | |
Top-k selection along a tensor's last dimension, on any device (roadmap FND-3).