-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[wasm] Modularize remaining kernels. #3663
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.
Thank you Ann!
Reviewable status: complete! 1 of 1 approvals obtained (waiting on @annxingyuan, @lina128, and @tafsiri)
tfjs-backend-wasm/src/kernels/AddN.ts, line 29 at r1 (raw file):
function setupFunc(backend: BackendWasm): void { wasmFunc = backend.wasm.cwrap('AddN', null /* void */, [
Use symbol.
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: complete! 1 of 1 approvals obtained (waiting on @lina128 and @tafsiri)
tfjs-backend-wasm/src/kernels/AddN.ts, line 29 at r1 (raw file):
Previously, lina128 (Na Li) wrote…
Use symbol.
Done
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.
Great!
Reviewed 60 of 61 files at r1, 1 of 1 files at r2.
Reviewable status: complete! 2 of 1 approvals obtained (waiting on @lina128 and @tafsiri)
This PR cleans up remaining cases in the WASM backend where we define kernel names / inputs / attrs within the kernel rather than importing from
tfjs-core/src/kernel_names.ts
. Also castskernelFunc
functions asKernelFunc
to avoid having to cast inputs / attrs before using them.To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
This change is