We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbd85d commit bd0cc7eCopy full SHA for bd0cc7e
tfjs-core/src/ops/mean.ts
@@ -66,7 +66,8 @@ function mean_<T extends Tensor>(
66
67
const inputs: MeanInputs = {x: $x};
68
const attrs: MeanAttrs = {axis, keepDims};
69
- const forward: ForwardFunc<Tensor> = () => {
+ const forward: ForwardFunc<Tensor> = (backend, save) => {
70
+ save([$x]);
71
const axes = parseAxisParam(axis, $x.shape);
72
const shapes = computeOutAndReduceShapes($x.shape, axes);
73
const reduceShape = shapes[1];
0 commit comments