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

Function CompiledKernel

tensorflow/compiler/tests/jit_test.py:57–66  ·  view source on GitHub ↗

Execute 'fn' as a compiled XLA kernel, with 'inputs'.

(fn, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

55
56
57def CompiledKernel(fn, *inputs, **kwargs):
58 """Execute 'fn' as a compiled XLA kernel, with 'inputs'."""
59 name = kwargs.pop("name", None)
60 noinline = kwargs.pop("noinline", None)
61
62 @function.Defun(func_name=name, noinline=noinline, compiled=True)
63 def Compiled(*args):
64 return fn(*args)
65
66 return Compiled(*inputs)
67
68
69def RunMetadataLabels(run_metadata):

Callers 1

_compareMethod · 0.85

Calls 2

CompiledFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected