-
Notifications
You must be signed in to change notification settings - Fork 132
Add support for negative axis in specify_broadcastable
#710
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 3 commits
306f419
c67a460
0fc032f
2b1223a
987a103
738e123
d563208
0319410
d92c2d7
ebf4b97
152423c
9f16fda
368f69b
e306ca5
66588a6
f2ec5a4
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 | ||
---|---|---|---|---|
|
@@ -25,6 +25,7 @@ pytensor/tensor/random/basic.py | |||
pytensor/tensor/random/op.py | ||||
pytensor/tensor/random/utils.py | ||||
pytensor/tensor/rewriting/basic.py | ||||
pytensor/tensor/shape.py | ||||
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. This shouldn't be done. Over time we want less files, not more. What's mypy complaining about? 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. Mypy complains about the line pytensor/pytensor/tensor/basic.py Line 18 in 5e612ab
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. You can do the same. Better to ignore a single line than a whole file. Going forward: In numpy 2.0 at least they moved this to a user facing location so it should be legal to import then. I don't know if it's already there in the current releases. 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. It already exists. Can you check if it's fine to import from here: If so we should import like this in the other places as remove the type ignore 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. I'll just try this out 👍 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. 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. So I checked I am currently using numpy version 1.26.4 and I get the error We are yet to switch to numpy2.0 right? 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. Strange because the docs say it's new from v1.13. Anyway that answers it for now. No we're not switching to numpy 2.0 for a while, so let's keep importing and telling mypy to ignore it |
||||
pytensor/tensor/slinalg.py | ||||
pytensor/tensor/subtensor.py | ||||
pytensor/tensor/type.py | ||||
|
Uh oh!
There was an error while loading. Please reload this page.