Example #1
0
 def test(self):
     like_lt = ops.ones_like(self.original_lt)
     golden_lt = core.LabeledTensor(
         array_ops.ones_like(self.original_lt.tensor),
         self.original_lt.axes)
     self.assertLabeledTensorsEqual(like_lt, golden_lt)
Example #2
0
 def test(self):
   like_lt = ops.ones_like(self.original_lt)
   golden_lt = core.LabeledTensor(
       array_ops.ones_like(self.original_lt.tensor), self.original_lt.axes)
   self.assertLabeledTensorsEqual(like_lt, golden_lt)
Example #3
0
 def test_name(self):
     like_lt = ops.ones_like(self.original_lt)
     self.assertIn('lt_ones_like', like_lt.name)
Example #4
0
 def test_name(self):
   like_lt = ops.ones_like(self.original_lt)
   self.assertIn('lt_ones_like', like_lt.name)