Skip to content

[WIP] Make axis definition of concat and split consistent#352

Closed
huningxin wants to merge 1 commit intowebmachinelearning:mainfrom
huningxin:fix_concat
Closed

[WIP] Make axis definition of concat and split consistent#352
huningxin wants to merge 1 commit intowebmachinelearning:mainfrom
huningxin:fix_concat

Conversation

@huningxin
Copy link
Contributor

@huningxin huningxin commented Feb 23, 2023

fix #345

The current axis definitions of concat and split are inconsistent. The difference is captured in the following table in #307, thanks @BruceDai !

Op Axis Type Value description
concat axis is the second parameter long with the value in the interval [0, N) where N is the rank of all the inputs
split axis is an option of the optional options parameter long Default to 0. A negative value is interpreted as counting back from the end

This PR fixes this inconsistency by aligning the valid value range [-N, N) and negative value interpretation.

@wchao1115 @wacky6 @anssiko @RafaelCintron @pyu10055 , PTAL. Thanks!


Preview | Diff

@huningxin huningxin requested a review from wchao1115 February 23, 2023 08:37
@huningxin huningxin requested a review from pyu10055 February 28, 2023 05:25
@huningxin huningxin changed the title Make axis definition of concat and split consistent [WIP] Make axis definition of concat and split consistent Mar 2, 2023
@huningxin
Copy link
Contributor Author

I mark this PR as WIP because there is on-going discussion on #345 . You are encouraged to share your thoughts in that issue. Once the consensus made, I'll update this PR and resume the review. Thanks!

@huningxin
Copy link
Contributor Author

According to the feedback received in #345, I am going to close this one. Please help review the new PR that uses unsigned integer axis: #359. Thanks!

@huningxin huningxin closed this Mar 3, 2023
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.

Use unsigned long for axis of concat operation

2 participants