We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdb74e commit 315616cCopy full SHA for 315616c
tests/test_distributions.py
@@ -82,19 +82,19 @@ def test_distribution_must_be_initialized(self):
82
83
DIMS = 2
84
dist = MaskableCategoricalDistribution(DIMS)
85
- with pytest.raises(AssertionError):
+ with pytest.raises(AttributeError):
86
dist.log_prob(th.randint(DIMS - 1, (1, 3)))
87
88
89
dist.entropy()
90
91
92
dist.sample()
93
94
95
dist.mode()
96
97
98
dist.apply_masking(None)
99
100
# But now we can
0 commit comments