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

Method testPreventFeeding

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

Source from the content-addressed store, hash-verified

2805 self.assertFalse(ops.has_default_graph())
2806
2807 def testPreventFeeding(self):
2808 g = ops.Graph()
2809 a = constant_op.constant(2.0)
2810 self.assertTrue(g.is_feedable(a))
2811 g.prevent_feeding(a)
2812 self.assertFalse(g.is_feedable(a))
2813
2814 @test_util.run_deprecated_v1
2815 def testPreventFetching(self):

Callers

nothing calls this directly

Calls 4

is_feedableMethod · 0.95
prevent_feedingMethod · 0.95
GraphMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected