def test_deconv3d_invalid(self): (x, W, b) = self._get_data(2) with self.assertRaises(ValueError): F.deconvolution_3d(x, W, b)
def test_deconv3d(self): (x, W, b) = self._get_data(3) testing.assert_allclose( F.deconvolution_nd(x, W, b).data, F.deconvolution_3d(x, W, b).data)