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

[wasm] Modularize remaining kernels. #3663

Merged
merged 12 commits into from
Jul 28, 2020
Merged

[wasm] Modularize remaining kernels. #3663

merged 12 commits into from
Jul 28, 2020

Conversation

annxingyuan
Copy link
Contributor

@annxingyuan annxingyuan commented Jul 27, 2020

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 casts kernelFunc functions as KernelFunc 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 Reviewable

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 Ann!

Reviewable status: :shipit: 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.

Copy link
Contributor Author

@annxingyuan annxingyuan left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: 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

Copy link
Contributor

@tafsiri tafsiri left a 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: :shipit: complete! 2 of 1 approvals obtained (waiting on @lina128 and @tafsiri)

@annxingyuan annxingyuan merged commit 83e1b7e into master Jul 28, 2020
@annxingyuan annxingyuan deleted the wasm_blazeface branch July 28, 2020 11:17
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.

4 participants