@@ -217,6 +217,10 @@ def test_custom_dist_without_random(self):
217
217
with pytest .raises (NotImplementedError ):
218
218
pm .sample_posterior_predictive (idata , model = model )
219
219
220
+ @pytest .mark .xfail (
221
+ NotImplementedError ,
222
+ reason = "Support shape of multivariate CustomDist cannot be inferred. See https://github.com/pymc-devs/pytensor/pull/388" ,
223
+ )
220
224
@pytest .mark .parametrize ("size" , [(), (3 ,), (3 , 2 )], ids = str )
221
225
def test_custom_dist_with_random_multivariate (self , size ):
222
226
supp_shape = 5
@@ -264,6 +268,10 @@ def test_custom_dist_old_api_error(self):
264
268
):
265
269
CustomDist ("a" , lambda x : x )
266
270
271
+ @pytest .mark .xfail (
272
+ NotImplementedError ,
273
+ reason = "Support shape of multivariate CustomDist cannot be inferred. See https://github.com/pymc-devs/pytensor/pull/388" ,
274
+ )
267
275
@pytest .mark .parametrize ("size" , [None , (), (2 ,)], ids = str )
268
276
def test_custom_dist_multivariate_logp (self , size ):
269
277
supp_shape = 5
@@ -314,6 +322,10 @@ def density_moment(rv, size, mu):
314
322
assert evaled_moment .shape == to_tuple (size )
315
323
assert np .all (evaled_moment == mu_val )
316
324
325
+ @pytest .mark .xfail (
326
+ NotImplementedError ,
327
+ reason = "Support shape of multivariate CustomDist cannot be inferred. See https://github.com/pymc-devs/pytensor/pull/388" ,
328
+ )
317
329
@pytest .mark .parametrize ("size" , [(), (2 ,), (3 , 2 )], ids = str )
318
330
def test_custom_dist_custom_moment_multivariate (self , size ):
319
331
def density_moment (rv , size , mu ):
@@ -328,6 +340,10 @@ def density_moment(rv, size, mu):
328
340
assert evaled_moment .shape == to_tuple (size ) + (5 ,)
329
341
assert np .all (evaled_moment == mu_val )
330
342
343
+ @pytest .mark .xfail (
344
+ NotImplementedError ,
345
+ reason = "Support shape of multivariate CustomDist cannot be inferred. See https://github.com/pymc-devs/pytensor/pull/388" ,
346
+ )
331
347
@pytest .mark .parametrize (
332
348
"with_random, size" ,
333
349
[
0 commit comments