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

Method _has_reductions

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

True if some reductions where performed by loop body.

(self)

Source from the content-addressed store, hash-verified

983 self._reverse_reduce_concat_map = object_identity.ObjectIdentityDictionary()
984
985 def _has_reductions(self):
986 """True if some reductions where performed by loop body."""
987 return len(self._reduce_concat_map)
988
989 def _set_iters(self, iters):
990 """Set number of pfor iterations."""

Callers 1

_pfor_implFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected