-
Notifications
You must be signed in to change notification settings - Fork 3.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
[SCHEDULE] New Reduction Mode for Tensorize #714
Comments
cc @derisavi-huawei @merrymercy let me know if it makes sense to you and see if any of you are interested in this |
I'm not crystal clear on what the problem is. It seems to me that an init intrinsic should always be available because a reduction always has an identity element. Is this about an alternative way for TVM to generate IR for Also, I don't clearly see the pros and cons of the design decisions involved here. Could you give us initial ideas so we can brainstorm? In terms of interest, it's not something that will be on our radar in the next month or so. If we grow an interest in it, I'll definitely let you know. Sorry! You were expecting answers and you received many questions instead :-) |
It is related to #512 on comment in terms of the alternative way of generating reduction, and is useful when init intrinsic is not available due too limitation of hardware |
I can try this but may not too soon. |
Second form makes life easier for us, so we are interested. Unfortunately we can't invest time in this in the short term. |
Hi, |
@tqchen , I have a solution in my local now, as we discussed, firstly set the reset part as "None" in intrinsic definition, then transform the update part in tensorize.cc. I will send to u for review after some tests. |
@tqchen , I created a pull request, can u help to review it? |
close this, thanks to @kun-zh |
So far we are implementing reduction as
This may not be desirable, especially when there is no reset(init) intrinsic available. So alternatively, we can do
The subsequent loop split process will peel the loop to remove the likely condition when possible.
For now, we can enable this mode, when user did not provide init intrinsic in
tensor_intrin
, but provided compute and update intrinsicThe text was updated successfully, but these errors were encountered: