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

Error: Unknown layer: Lambda. #1521

Closed
chenqing opened this issue Apr 17, 2019 · 2 comments
Closed

Error: Unknown layer: Lambda. #1521

chenqing opened this issue Apr 17, 2019 · 2 comments

Comments

@chenqing
Copy link

Error: Unknown layer: Lambda. This may be due to one of the following reasons:

  1. The layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.
  2. The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().
@bileschi
Copy link
Contributor

Hello @chenqing
It sounds like you are using a Lambda layer. Lambda layers run native python code, and are thus not currently supported in tfjs

Please see this StackOverflow question & answer:
https://stackoverflow.com/questions/50878885/unknown-layer-lambda-in-tensorflowjs-on-browser/50893452#50893452

@BenjaminWegener
Copy link

BenjaminWegener commented Feb 22, 2020

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

No branches or pull requests

3 participants