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]Error: Kernel 'Complex' not registered for backend 'wasm' #5440

Open
axinging opened this issue Aug 6, 2021 · 3 comments
Open

[wasm]Error: Kernel 'Complex' not registered for backend 'wasm' #5440

axinging opened this issue Aug 6, 2021 · 3 comments
Assignees

Comments

@axinging
Copy link
Contributor

axinging commented Aug 6, 2021

Case:

 it('complex', async () => {
    const real = tf.tensor1d([3, 30]);
    const imag = tf.tensor1d([4, 40]);
    const complex = tf.complex(real, imag);
    const res = tf.mul(complex, complex);
    expectArraysClose(await res.data(), [-7, 24, -700, 2400]);
  });

Error:

Step #23 - "test-wasm-tfjs-backend-wasm":   Message:
Step #23 - "test-wasm-tfjs-backend-wasm":     Error: Kernel 'Complex' not registered for backend 'wasm'
Step #23 - "test-wasm-tfjs-backend-wasm":   Stack:
Step #23 - "test-wasm-tfjs-backend-wasm":     Error: Kernel 'Complex' not registered for backend 'wasm'
Step #23 - "test-wasm-tfjs-backend-wasm":         at Engine.runKernel (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/engine.js:521:23)
Step #23 - "test-wasm-tfjs-backend-wasm":         at complex_ (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/complex.js:59:32)
Step #23 - "test-wasm-tfjs-backend-wasm":         at Object.complex__op [as complex] (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/operation.js:79:33)
Step #23 - "test-wasm-tfjs-backend-wasm":         at /workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:125:38
Step #23 - "test-wasm-tfjs-backend-wasm":         at step (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:47:23)
Step #23 - "test-wasm-tfjs-backend-wasm":         at Object.next (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:28:53)
Step #23 - "test-wasm-tfjs-backend-wasm":         at /workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:22:71
Step #23 - "test-wasm-tfjs-backend-wasm":         at <Jasmine>
Step #23 - "test-wasm-tfjs-backend-wasm":         at __awaiter (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:18:12)
Step #23 - "test-wasm-tfjs-backend-wasm":         at UserContext.<anonymous> (/workspace/link-package-core/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops_test.js:118:44)
Step #23 - "test-wasm-tfjs-backend-wasm":         at <Jasmine>
Step #23 - "test-wasm-tfjs-backend-wasm":         at runCallback (timers.js:705:18)
Step #23 - "test-wasm-tfjs-backend-wasm":         at tryOnImmediate (timers.js:676:5)
Step #23 - "test-wasm-tfjs-backend-wasm":         at processImmediate (timers.js:658:5)
Step #23 - "test-wasm-tfjs-backend-wasm":         at process.topLevelDomainCallback (domain.js:126:23)
Step #23 - "test-wasm-tfjs-backend-wasm": Pending:
@axinging axinging added the type:bug Something isn't working label Aug 6, 2021
@axinging axinging changed the title Error: Kernel 'Complex' not registered for backend 'wasm' [wasm]Error: Kernel 'Complex' not registered for backend 'wasm' Aug 6, 2021
@gaikwadrahul8
Copy link
Contributor

Hi, @axinging

Apologize for the delayed response and we're re-visiting our older issues and checking whether those issues got resolved or not as of now so May I know are you still looking for the solution or your issue got resolved ?

If issue still persists after trying with latest version of TFJs please let us know with error log and code snippet to replicate the same issue from our end ?

Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!

@chunnienc
Copy link
Collaborator

Hi @gaikwadrahul8,

TFJS wasm backend does not support complex dtype and all kernels/ops for complex tensors. I'm going to work on that support later this year. If you see any issues related to complex on wasm backend please assign to me, thanks!

@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you.

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

No branches or pull requests

4 participants