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

Function get_ignore_reason

tensorflow/python/framework/test_util.py:693–705  ·  view source on GitHub ↗

Tests whether an object should be omitted from the dependency graph.

(obj, blacklist)

Source from the content-addressed store, hash-verified

691def _find_reference_cycle(objects, idx):
692
693 def get_ignore_reason(obj, blacklist):
694 """Tests whether an object should be omitted from the dependency graph."""
695 if len(blacklist) > 100:
696 return "<depth limit>"
697 if tf_inspect.isframe(obj):
698 if "test_util.py" in tf_inspect.getframeinfo(obj)[0]:
699 return "<test code>"
700 for b in blacklist:
701 if b is obj:
702 return "<test code>"
703 if obj is blacklist:
704 return "<test code>"
705 return None
706
707 # Note: this function is meant to help with diagnostics. Its output is purely
708 # a human-readable representation, so you may freely modify it to suit your

Callers 2

describeFunction · 0.85
build_ref_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected