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

Port sentence_embeddings_with_sbert to Keras 3 #1647

Merged

Conversation

mattdangerw
Copy link
Member

Only tf backend for now, and jit_compile=False to avoid a XLA error with variables on the wrong device.
https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device

The long term fix is probably to move all preprocessing out of the call graph of these models (no Input(dtype="string")), but for now we can do the simple fix.

Only tf backend for now, and `jit_compile=False` to avoid a
XLA error with variables on the wrong device.
https://www.tensorflow.org/xla/known_issues#tfvariable_on_a_different_device

The long term fix is probably to move all preprocessing out of the call
graph of these models (no `Input(dtype="string")`), but for now we can
do the simple fix.
@mattdangerw mattdangerw force-pushed the keras-3-sentence-embeddings-sbert branch from 243d15d to 73b40fd Compare November 27, 2023 21:46
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@fchollet fchollet merged commit 791691b into keras-team:master Nov 27, 2023
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

4 participants