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

Function MetadataHasXlaRunOp

tensorflow/compiler/tests/jit_test.py:83–87  ·  view source on GitHub ↗

Returns true if there are XlaRun kernels in run_metadata's timeline.

(run_metadata)

Source from the content-addressed store, hash-verified

81
82
83def MetadataHasXlaRunOp(run_metadata):
84 """Returns true if there are XlaRun kernels in run_metadata's timeline."""
85
86 # TODO(phawkins): find a less hacky way to test whether a kernel ran.
87 return InLabels(RunMetadataLabels(run_metadata), "_XlaRun")
88
89
90class JitLaunchTest(test.TestCase):

Callers 6

_compareMethod · 0.85
testExplicitMarkingMethod · 0.85
testReshapeMethod · 0.85
testIgnoredArgumentsMethod · 0.85
testLoopsMethod · 0.85
testCondMethod · 0.85

Calls 2

RunMetadataLabelsFunction · 0.85
InLabelsFunction · 0.70

Tested by

no test coverage detected