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

Method testShape

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

Source from the content-addressed store, hash-verified

97class TensorAndShapeTest(test_util.TensorFlowTestCase):
98
99 def testShape(self):
100 op = ops.Operation(
101 ops._NodeDef("FloatOutput", "myop"), ops.Graph(), [], [dtypes.float32])
102 t = op.outputs[0]
103 self.assertEqual(tensor_shape.unknown_shape(), t.get_shape())
104 t.set_shape([1, 2, 3])
105 self.assertEqual([1, 2, 3], t.get_shape())
106
107 def testIterable(self):
108 if not context.executing_eagerly():

Callers

nothing calls this directly

Calls 5

unknown_shapeMethod · 0.80
OperationMethod · 0.45
GraphMethod · 0.45
get_shapeMethod · 0.45
set_shapeMethod · 0.45

Tested by

no test coverage detected