-
Couldn't load subscription status.
- Fork 72
Pytensor 2.35 Compatibility Fixes #597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
287812b
576e08f
0608ed4
01c9005
c775776
8e6045f
885f8b3
b3e5df2
8eddeb2
6c17463
b1a1ad9
02cd0ac
d3f36d3
e592926
8de112c
65c5c51
34b2e9a
6036c5a
fb15eaa
239b39f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,7 +138,7 @@ def test_blockwise(self): | |
| with pytest.raises(ValueError, match="Use of known dimensions"): | ||
| subgraph_batch_dim_connection(inp, [invalid_out]) | ||
|
|
||
| out = (inp[:, :, None, None] + pt.zeros((2, 3))) @ pt.ones((2, 3)) | ||
| out = (inp[:, :, None, None] + pt.zeros((2, 3))) @ pt.ones((3, 2)) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. static shape check now reveals this error in the test |
||
| [dims] = subgraph_batch_dim_connection(inp, [out]) | ||
| assert dims == (0, 1, None, None) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -230,7 +230,7 @@ def build_model(build_batched: bool) -> Model: | |
|
|
||
| # Test initial_point | ||
| ips = make_initial_point_expression( | ||
| free_rvs=marginal_m.free_RVs, | ||
| free_rvs=[marginal_m["sigma"], marginal_m["dep"], marginal_m["sub_dep"]], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The order of free_RVs changed for similar reason |
||
| rvs_to_transforms=marginal_m.rvs_to_transforms, | ||
| initval_strategies={}, | ||
| ) | ||
|
|
@@ -294,7 +294,7 @@ def test_interdependent_rvs(): | |
|
|
||
| # Test initial_point | ||
| ips = make_initial_point_expression( | ||
| free_rvs=marginal_m.free_RVs, | ||
| free_rvs=[marginal_m["x"], marginal_m["y"]], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| rvs_to_transforms={}, | ||
| initval_strategies={}, | ||
| ) | ||
|
|
@@ -306,7 +306,7 @@ def test_interdependent_rvs(): | |
| # Test custom initval strategy | ||
| ips = make_initial_point_expression( | ||
| # Test that order does not matter | ||
| free_rvs=marginal_m.free_RVs[::-1], | ||
| free_rvs=[marginal_m["y"], marginal_m["x"]], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| rvs_to_transforms={}, | ||
| initval_strategies={marginal_x: pt.constant(5.0)}, | ||
| ) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "first dependent RV" that gets the full logp changed with our new toposort algo