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

Method _lookup_reduction

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

Lookups Placeholder `pl` in the reduction map.

(self, pl)

Source from the content-addressed store, hash-verified

1046 return math_ops.reduce_sum(y, axis=0)
1047
1048 def _lookup_reduction(self, pl):
1049 """Lookups Placeholder `pl` in the reduction map."""
1050 msg = "Expected Tensor, got {} of type {}."
1051 assert isinstance(pl, ops.Tensor), msg.format(pl, type(pl))
1052 return self._reduce_concat_map.get(pl, None)
1053
1054
1055class PFor(object):

Callers 1

_convert_helperMethod · 0.80

Calls 3

typeFunction · 0.85
formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected