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

Method testPreventFetching

tensorflow/python/framework/ops_test.py:2815–2820  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2813
2814 @test_util.run_deprecated_v1
2815 def testPreventFetching(self):
2816 g = ops.Graph()
2817 a = constant_op.constant(2.0)
2818 self.assertTrue(g.is_fetchable(a))
2819 g.prevent_fetching(a.op)
2820 self.assertFalse(g.is_fetchable(a))
2821
2822 def testAsGraphElementConversions(self):
2823

Callers

nothing calls this directly

Calls 4

is_fetchableMethod · 0.95
prevent_fetchingMethod · 0.95
GraphMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected