Beispiel #1
0
 def test_deconv1d_invalid(self):
     (x, W, b) = self._get_data(2)
     with self.assertRaises(ValueError):
         F.deconvolution_1d(x, W, b)
Beispiel #2
0
 def test_deconv1d(self):
     (x, W, b) = self._get_data(1)
     testing.assert_allclose(
         F.deconvolution_nd(x, W, b).data, F.deconvolution_1d(x, W, b).data)