-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deprecate vectorized abs methods in favor of compact broadcast syntax #18558
Conversation
is there an |
Worth noting: Unlike with
The broader vectorized |
@tkelman is this good to go? |
Actually these are all susceptible to the issue in #18590 (comment), where fusing will change the semantics and there isn't a great way of asking specifically for the structure-preserving version of this operation. So I think aliasing isn't the only controversial part about this whole set of PR's. |
Agreed. I should be able to dedicate some time to experimenting with more general structure-preserving |
I've been trying to find a way of dealing with that issue and the only solution I can think of, would require the new type system in place. |
If you'd like to revert this, that might make sense. Though it would de-conflict your set of other related PR's, which you might want to leave on hold until we figure out a plan here. |
@pabloferz, I would love to hear your thoughts. Perhaps in #18590? Best! |
This was the only one of these we merged before realizing the issue, right? To refresh my memory it was roughly that |
IIRC, correct.
IIRC, roughly yes: The issue was that fusion largely defeats
For combinations of sparse matrices, yes. I also have code handling combinations of sparse matrices and scalars, unfortunately impacted by this issue described on discourse (but perhaps good enough as a functionality stopgap). Not being certain how to proceed on that front (whether to wait for the issue in that thread to improve, or instead pursue the other approach I mention there), my present focus is extending the preceding work to sparse vectors. More information in this discourse post. Best! |
Did I mention somewhere that the output type should not be derived from inference results? I think that would make the issue you are having for the mixed sparse/scalar go away, no? |
This PR deprecates all (?) remaining vectorized
abs
methods in favor of compact broadcast syntax. Ref. #16285, #17302, #18495, #18512, and #18513. Best!