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

Function IsContainingContext

tensorflow/python/ops/control_flow_util.py:250–255  ·  view source on GitHub ↗

Returns true if `maybe_containing_ctxt` is or contains `ctxt`.

(ctxt, maybe_containing_ctxt)

Source from the content-addressed store, hash-verified

248
249
250def IsContainingContext(ctxt, maybe_containing_ctxt):
251 """Returns true if `maybe_containing_ctxt` is or contains `ctxt`."""
252 while ctxt is not maybe_containing_ctxt:
253 if ctxt is None: return False
254 ctxt = ctxt.outer_context
255 return True
256
257
258def OpInContext(op, ctxt):

Callers 2

OpInContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected