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

Function guarantee_const_getter

tensorflow/python/tpu/tpu.py:1646–1649  ·  view source on GitHub ↗
(getter, name, *args, **kwargs)

Source from the content-addressed store, hash-verified

1644 """
1645
1646 def guarantee_const_getter(getter, name, *args, **kwargs):
1647 with ops.control_dependencies(None):
1648 return array_ops.guarantee_const(
1649 getter(name, *args, **kwargs), name=name + "/GuaranteeConst")
1650
1651 def wrapped_computation(*args, **kwargs):
1652 """Execute computation under `_TPUInferenceContext`."""

Callers

nothing calls this directly

Calls 2

getterFunction · 0.85
control_dependenciesMethod · 0.45

Tested by

no test coverage detected