MCPcopy Create free account
hub / github.com/alibaba/nann / _recursive_apply

Function _recursive_apply

tensorflow/tensorflow/python/framework/subscribe.py:30–65  ·  view source on GitHub ↗

Helper method to recursively apply a function to structure of tensors. The structure of the tensors should take the form similar to fetches in `tf.compat.v1.Session` and includes single `Tensor`, `list`, nested `list`, `tuple`, `namedtuple`, or `dict`. Args: tensors: Single `Tensor`,

(tensors, apply_fn)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

subscribeFunction · 0.85

Calls 4

typeFunction · 0.85
tupleFunction · 0.85
TypeErrorFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected