Exemplo n.º 1
0
 def test(self):
     actual_lt = ops.reduce_mean(self.original_lt, {'channel'})
     golden_lt = core.LabeledTensor(
         math_ops.reduce_mean(self.original_lt.tensor, 1),
         [self.a0, self.a2, self.a3])
     self.assertLabeledTensorsEqual(actual_lt, golden_lt)
Exemplo n.º 2
0
 def test(self):
   actual_lt = ops.reduce_mean(self.original_lt, {'channel'})
   golden_lt = core.LabeledTensor(
       math_ops.reduce_mean(self.original_lt.tensor, 1),
       [self.a0, self.a2, self.a3])
   self.assertLabeledTensorsEqual(actual_lt, golden_lt)
Exemplo n.º 3
0
 def test_name(self):
     actual_lt = ops.reduce_mean(self.original_lt, {'channel'})
     self.assertIn('lt_reduce_mean', actual_lt.name)
Exemplo n.º 4
0
 def test_name(self):
   actual_lt = ops.reduce_mean(self.original_lt, {'channel'})
   self.assertIn('lt_reduce_mean', actual_lt.name)