Computes the mean along an axis.
More...
#include <reductions.hpp>
Computes the mean along an axis.
Requires floating-point input (float32
/float64
).
Use keepdim=true
to maintain shape for broadcasting.
Example:
{3.0, 4.0}};
Tensor Y = mean(X, 0);
A multidimensional, strided tensor data structure.
Definition: tensor.hpp:105
◆ forward()
void tannic::expression::Argmean::forward |
( |
Tensor const & |
input, |
|
|
Tensor & |
output |
|
) |
| const |
◆ reduce() [1/2]
constexpr Shape tannic::expression::Argmean::reduce |
( |
Shape const & |
shape | ) |
const |
|
inlineconstexpr |
◆ reduce() [2/2]
constexpr type tannic::expression::Argmean::reduce |
( |
type |
dtype | ) |
const |
|
inlineconstexpr |
◆ axis
int tannic::expression::Argmean::axis |
◆ keepdim
bool tannic::expression::Argmean::keepdim = false |
The documentation for this struct was generated from the following file: