Skip to content

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
@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.

5 participants