We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current behaviour when using distance='cosine' throws an error:
distance='cosine'
AttributeError: module 'tensorflow.keras.losses' has no attribute 'cosine_distance'
Potential fix is changing module imports to: tf.compat.v1.losses.cosine_distance
tf.compat.v1.losses.cosine_distance
The text was updated successfully, but these errors were encountered:
Fixed cosine distance calculation and made it work across multiple TensorFlow versions here: 9d8eb40
Sorry, something went wrong.
No branches or pull requests
Current behaviour when using
distance='cosine'
throws an error:Potential fix is changing module imports to:
tf.compat.v1.losses.cosine_distance
The text was updated successfully, but these errors were encountered: