-
Notifications
You must be signed in to change notification settings - Fork 2k
[webgl] Modularize sqrt #4356
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] Modularize sqrt #4356
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1.
Reviewable status: 0 of 1 approvals obtained (waiting on @mattsoulanille)
tfjs-backend-webgl/src/backend_webgl.ts, line 666 at r1 (raw file):
// TODO(msoulanille) remove this once the backend has been modularized // a copy is needed here because backend_webgl tests use sqrt.
Those tests should still work if this is removed, they call sqrt via the op in core which should dispatch to the modular sqrt kernel you added below. What error are you seeing when you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 approvals obtained (waiting on @tafsiri)
tfjs-backend-webgl/src/backend_webgl.ts, line 666 at r1 (raw file):
Previously, tafsiri (Yannick Assogba) wrote…
Those tests should still work if this is removed, they call sqrt via the op in core which should dispatch to the modular sqrt kernel you added below. What error are you seeing when you remove this?
I omitted sqrt from a previous PR because the backend_webgl tests were failing. I forget what the error was, so I've pushed a commit removing sqrt from backend_webgl so we can see if it appears again.
Looks like
|
@mattsoulanille Could you dig into that a bit more? For examples which test is this in, One thing i suspect is that the a new backend is being registered but the kernels are not being copied over into it. Look for uses of Part of the reason i'm asking is that your todo says to remove this once the backend is modularized, but that is what you are doing in this PR, so it is unclear what the blocker is for removing this. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 3 files at r1, 2 of 2 files at r2, 2 of 2 files at r3.
Reviewable status:complete! 1 of 1 approvals obtained
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is