Skip to content

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

Merged
MasterJH5574 merged 1 commit into
apache:mainfrom
Lunderberg:tir_use_4th_argument_in_comm_reducer
Sep 17, 2023
Merged

[TIR] Do not drop 4th argument to tir.max#15763
MasterJH5574 merged 1 commit into
apache:mainfrom
Lunderberg:tir_use_4th_argument_in_comm_reducer

Conversation

@Lunderberg

Copy link
Copy Markdown
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`.

@junrushao junrushao left a comment

Copy link
Copy Markdown
Member

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