示例#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)
示例#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)
示例#3
0
 def test_name(self):
     like_lt = ops.ones_like(self.original_lt)
     self.assertIn('lt_ones_like', like_lt.name)
示例#4
0
 def test_name(self):
   like_lt = ops.ones_like(self.original_lt)
   self.assertIn('lt_ones_like', like_lt.name)