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

[webgl] Fixed split issue with negative axis. #4478

Merged
merged 4 commits into from
Jan 6, 2021

Conversation

BruceDai
Copy link
Contributor

@BruceDai BruceDai commented Jan 4, 2021

BUG

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@google-cla google-cla bot added the cla: yes label Jan 4, 2021
@BruceDai
Copy link
Contributor Author

BruceDai commented Jan 4, 2021

@tafsiri @lina128 PTAL, thanks

@tafsiri
Copy link
Contributor

tafsiri commented Jan 5, 2021

@BruceDai thanks for this, the change looks good but it would be great to have a test with a negative axes param to catch regressions across backends. Would you be able to add one to split_test.ts?

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Nice catch, thank you Bruce! LGTM. +1 to Yannick's suggestion.

Reviewable status: 0 of 1 approvals obtained

@BruceDai
Copy link
Contributor Author

BruceDai commented Jan 6, 2021

@tafsiri @lina128 Please take another look, thanks.

@lina128
Copy link
Collaborator

lina128 commented Jan 6, 2021

The test failed because of this line, can you also update this line to use $axis? https://github.com/tensorflow/tfjs/blob/master/tfjs-backend-wasm/src/kernels/SplitV.ts#L33

@BruceDai
Copy link
Contributor Author

BruceDai commented Jan 6, 2021

@lina128 Done. PTAL, thanks.

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants