Example #1
0
 def test_inverse_log_det_jacobian(self, input, expected):
     with self.assertRaises(expected):
         exe = paddle.static.Executor()
         sp = paddle.static.Program()
         mp = paddle.static.Program()
         with paddle.static.program_guard(mp, sp):
             t = transform.Transform()
             static_input = paddle.static.data('input', input.shape,
                                               input.dtype)
             output = t.inverse_log_det_jacobian(static_input)
         exe.run(sp)
         exe.run(mp, feed={'input': input}, fetch_list=[output])
Example #2
0
 def test_call(self, input, expected_type):
     t = transform.Transform()
     self.assertIsInstance(t(input), expected_type)
Example #3
0
 def setUp(self):
     self._t = transform.Transform()