Esempio n. 1
0
 def testFprint(self):
   with self._single_threaded_test_session():
     in_data = tf.constant(['abc', 'very looooooong string', 'def'])
     out_data = _sdca_ops.sdca_fprint(in_data)
     self.assertAllEqual(
         [b'\x04l\x12\xd2\xaf\xb2\x809E\x9e\x02\x13',
          b'\x9f\x0f\x91P\x9aG.Ql\xf2Y\xf9',
          b'"0\xe00"\x18_\x08\x12?\xa0\x17'], out_data.eval())
Esempio n. 2
0
 def testFprint(self):
   with self._single_threaded_test_session():
     in_data = tf.constant(['abc', 'very looooooong string', 'def'])
     out_data = _sdca_ops.sdca_fprint(in_data)
     self.assertAllEqual(
         [b'\x04l\x12\xd2\xaf\xb2\x809E\x9e\x02\x13',
          b'\x9f\x0f\x91P\x9aG.Ql\xf2Y\xf9',
          b'"0\xe00"\x18_\x08\x12?\xa0\x17'], out_data.eval())
Esempio n. 3
0
 def testFprint(self):
   with self._single_threaded_test_session():
     in_data = tf.constant(['abc', 'very looooooong string', 'def'])
     out_data = _sdca_ops.sdca_fprint(in_data)
     self.assertAllEqual([b'a085f09013029e45-3980b2afd2126c04',
                          b'bc5a254df959f26c-512e479a50910f9f',
                          b'79999cd817a03f12-085f182230e03022'],
                         out_data.eval())
Esempio n. 4
0
 def testFprint(self):
     with self._single_threaded_test_session():
         in_data = tf.constant(["abc", "very looooooong string", "def"])
         out_data = _sdca_ops.sdca_fprint(in_data)
         self.assertAllEqual(
             [
                 b"\x04l\x12\xd2\xaf\xb2\x809E\x9e\x02\x13",
                 b"\x9f\x0f\x91P\x9aG.Ql\xf2Y\xf9",
                 b'"0\xe00"\x18_\x08\x12?\xa0\x17',
             ],
             out_data.eval(),
         )
Esempio n. 5
0
 def testFprint(self):
     with self.test_session():
         in_data = tf.constant(["abc", "very looooooong string", "def"])
         out_data = _sdca_ops.sdca_fprint(in_data)
         self.assertAllEqual(
             [
                 b"a085f09013029e45-3980b2afd2126c04",
                 b"bc5a254df959f26c-512e479a50910f9f",
                 b"79999cd817a03f12-085f182230e03022",
             ],
             out_data.eval(),
         )