Finds the indexes of minimum values along an axis.
More...
#include <reductions.hpp>
Finds the indexes of minimum values along an axis.
Identical to Argmax
but for minima. Output dtype is int64
. Use keepdim=true
to maintain shape for broadcasting.
Example:
{1, 5, 9}};
Tensor Y = argmin(X, 1);
A multidimensional, strided tensor data structure.
Definition: tensor.hpp:105
◆ forward()
void tannic::expression::Argmin::forward |
( |
Tensor const & |
, |
|
|
Tensor & |
|
|
) |
| const |
◆ reduce() [1/2]
constexpr Shape tannic::expression::Argmin::reduce |
( |
Shape const & |
shape | ) |
const |
|
inlineconstexpr |
◆ reduce() [2/2]
constexpr type tannic::expression::Argmin::reduce |
( |
type |
dtype | ) |
const |
|
inlineconstexpr |
◆ axis
int tannic::expression::Argmin::axis |
◆ keepdim
bool tannic::expression::Argmin::keepdim |
The documentation for this struct was generated from the following file: