Пример #1
0
 def test(self):
     with self.cached_session():
         result = zero_out_op_1.zero_out([5, 4, 3, 2, 1])
         self.assertAllEqual(result, [5, 0, 0, 0, 0])
Пример #2
0
 def test(self):
     result = zero_out_op_1.zero_out([5, 4, 3, 2, 1])
     self.assertAllEqual(result, [5, 0, 0, 0, 0])
Пример #3
0
 def test(self):
   with self.cached_session():
     result = zero_out_op_1.zero_out([5, 4, 3, 2, 1])
     self.assertAllEqual(result.eval(), [5, 0, 0, 0, 0])