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

Function reduce_fn

tensorflow/python/data/util/structure.py:317–319  ·  view source on GitHub ↗
(state, value)

Source from the content-addressed store, hash-verified

315 nest.assert_same_structure(element_spec, element)
316
317 def reduce_fn(state, value):
318 spec, component = value
319 return encode_fn(state, spec, component)
320
321 return functools.reduce(
322 reduce_fn, zip(nest.flatten(element_spec), nest.flatten(element)), [])

Callers 3

opFunction · 0.50
testBackwardNoneMethod · 0.50
loop_bodyMethod · 0.50

Calls

no outgoing calls

Tested by 1

testBackwardNoneMethod · 0.40