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

Method testIterable

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

Source from the content-addressed store, hash-verified

105 self.assertEqual([1, 2, 3], t.get_shape())
106
107 def testIterable(self):
108 if not context.executing_eagerly():
109 self.skipTest("Eager-mode test")
110 op = ops.Operation(
111 ops._NodeDef("FloatOutput", "myop"), ops.Graph(), [], [dtypes.float32])
112 t = op.outputs[0]
113 with self.assertRaisesRegexp(TypeError, "Cannot iterate"):
114 next(iter(t))
115
116 def testIterableGraph(self):
117 if context.executing_eagerly():

Callers

nothing calls this directly

Calls 3

executing_eagerlyMethod · 0.80
OperationMethod · 0.45
GraphMethod · 0.45

Tested by

no test coverage detected