Skip to content
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

[TIR] Do not drop 4th argument to tir.max #15763

Merged

Conversation

Lunderberg
Copy link
Contributor

The tir.op.comm_reducer utility provides two distinct APIs, either reducing along a tensor axis or reducing along a list of arguments.

Prior to this commit, when reducing along a list of arguments, the 4th argument was silently dropped. For example, tvm.tir.max(1,2,3,4,3,2,1) would return 3.

The `tir.op.comm_reducer` utility provides two distinct APIs, either
reducing along a tensor axis or reducing along a list of arguments.

Prior to this commit, when reducing along a list of arguments, the 4th
argument was silently dropped.  For example,
`tvm.tir.max(1,2,3,4,3,2,1)` would return `3`.
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great addition! Thanks for the work!

@MasterJH5574 MasterJH5574 merged commit 82b471c into apache:main Sep 17, 2023
20 checks passed
@Lunderberg Lunderberg deleted the tir_use_4th_argument_in_comm_reducer branch September 19, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants