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

Function InLabels

tensorflow/compiler/tests/jit_test.py:78–80  ·  view source on GitHub ↗

Returns true iff one of the labels contains substr.

(labels, substr)

Source from the content-addressed store, hash-verified

76
77
78def InLabels(labels, substr):
79 """Returns true iff one of the labels contains substr."""
80 return any(substr in x for x in labels)
81
82
83def MetadataHasXlaRunOp(run_metadata):

Callers 5

MetadataHasXlaRunOpFunction · 0.70
testGradientMethod · 0.70
testLazyCompilationMethod · 0.70
testIsMegamorphicMethod · 0.70
testIsNotMegamorphicMethod · 0.70

Calls 1

anyFunction · 0.85

Tested by

no test coverage detected