39 T initial()
const {
return T(0); }
42 void operator()(T& acc,
const T& value)
const {
59 T initial()
const {
return std::numeric_limits<T>::max(); }
62 void operator()(T& acc,
const T& value)
const {
63 if (value < acc) acc = value;
79 T initial()
const {
return std::numeric_limits<T>::lowest(); }
82 void operator()(T& acc,
const T& value)
const {
83 if (value > acc) acc = value;
100 std::pair<int64_t, T> initial()
const {
101 return {0, std::numeric_limits<T>::max()};
105 void operator()(std::pair<int64_t, T>& acc,
const T& value, int64_t idx)
const {
106 if (value < acc.second) {
125 std::pair<int64_t, T> initial()
const {
126 return {0, std::numeric_limits<T>::lowest()};
130 void operator()(std::pair<int64_t, T>& acc,
const T& value, int64_t idx)
const {
131 if (value > acc.second) {
NN Neural Network Library containing Tensor and NeuralNet classes for inference.
Definition NeuralError.h:13
Reduces a Tensor by finding the index of the maximum value along a specified axis.
Definition ReduceOps.h:123
Reduces a Tensor by finding the index of the minimum value along a specified axis.
Definition ReduceOps.h:98
Reduces a Tensor by computing the maximum value along a specified axis.
Definition ReduceOps.h:77
Reduces a Tensor by computing the minimum value along a specified axis.
Definition ReduceOps.h:57
Reduces a Tensor by summing its elements along a specified axis.
Definition ReduceOps.h:37