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

Function wrapped_custom_getter

tensorflow/python/ops/variable_scope.py:2706–2714  ·  view source on GitHub ↗
(getter, *args, **kwargs)

Source from the content-addressed store, hash-verified

2704
2705 # The new custom_getter should call the old one
2706 def wrapped_custom_getter(getter, *args, **kwargs):
2707 # Call:
2708 # custom_getter(
2709 # lambda: old_getter(true_getter, ...), *args, **kwargs)
2710 # which means custom_getter will call old_getter, which
2711 # will call the true_getter, perform any intermediate
2712 # processing, and return the results to the current
2713 # getter, which will also perform additional processing.
2714 return custom_getter(functools.partial(old_getter, getter), *args, **kwargs)
2715
2716 return wrapped_custom_getter
2717

Callers

nothing calls this directly

Calls 1

custom_getterFunction · 0.85

Tested by

no test coverage detected