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

Method testIsFunction

tensorflow/python/eager/pywrap_tfe_test.py:242–250  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 array_ops.split(value=[1, 2, 3], num_or_size_splits=0)
241
242 def testIsFunction(self):
243 ctx = context.context()
244 self.assertFalse(ctx.has_function("not_a_function"))
245
246 @def_function.function
247 def f():
248 return 1.
249
250 self.assertTrue(ctx.has_function(f.get_concrete_function().name))
251
252 def testEagerExecute_InvalidType(self):
253 # Test case for GitHub issue 26879.

Callers

nothing calls this directly

Calls 3

has_functionMethod · 0.80
contextMethod · 0.45
get_concrete_functionMethod · 0.45

Tested by

no test coverage detected