MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / reduce_mean

Method reduce_mean

tensorflow/python/ops/parallel_for/pfor.py:1020–1032  ·  view source on GitHub ↗

Performs a mean reduction on `x` across pfor iterations. Note that this currently may not work inside a control flow construct. Args: x: an unvectorized Tensor. Returns: A Tensor that has same rank as `x`. The value is the mean of the values of `x` across the pfor ite

(self, x)

Source from the content-addressed store, hash-verified

1018 return self._reverse_reduce_concat_map[x]
1019
1020 def reduce_mean(self, x):
1021 """Performs a mean reduction on `x` across pfor iterations.
1022
1023 Note that this currently may not work inside a control flow construct.
1024 Args:
1025 x: an unvectorized Tensor.
1026
1027 Returns:
1028 A Tensor that has same rank as `x`. The value is the mean of the values
1029 of `x` across the pfor iterations.
1030 """
1031 y = self.reduce_concat(x)
1032 return math_ops.reduce_mean(y, axis=0)
1033
1034 def reduce_sum(self, x):
1035 """Performs a sum reduction on `x` across pfor iterations.

Callers 15

_create_lossMethod · 0.80
_create_lossMethod · 0.80
_create_lossMethod · 0.80
_auxiliary_lossMethod · 0.80
_create_lossMethod · 0.80
_create_lossMethod · 0.80
diceFunction · 0.80
build_fcn_netMethod · 0.80
auxiliary_lossMethod · 0.80
build_fcn_net_bf16Method · 0.80
auxiliary_loss_bf16Method · 0.80
optimizerMethod · 0.80

Calls 1

reduce_concatMethod · 0.95

Tested by 15

testArgRenamesMethod · 0.64
testGPUMethod · 0.64
tf_functionMethod · 0.64
test_gradients_existMethod · 0.64
testThatBackpropRunsMethod · 0.64
testAllIncorrectMethod · 0.64
_testMVNMethod · 0.64