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

Method testAsProto

tensorflow/python/framework/tensor_shape_test.py:430–437  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 self.assertEqual("(4, 5, 2)", str(tensor_shape.TensorShape([4, 5, 2])))
429
430 def testAsProto(self):
431 self.assertTrue(tensor_shape.unknown_shape().as_proto().unknown_rank)
432 self.assertFalse(
433 tensor_shape.unknown_shape(rank=3).as_proto().unknown_rank)
434 self.assertFalse(
435 tensor_shape.TensorShape([1, 2, 3]).as_proto().unknown_rank)
436 self.assertFalse(
437 tensor_shape.TensorShape([1, None, 3]).as_proto().unknown_rank)
438
439 def testEquality(self):
440 s1 = tensor_shape.TensorShape([tensor_shape.Dimension(

Callers

nothing calls this directly

Calls 2

as_protoMethod · 0.80
unknown_shapeMethod · 0.80

Tested by

no test coverage detected