semantic-search icon indicating copy to clipboard operation
semantic-search copied to clipboard

ImportError: cannot import name 'cosine_proximity' from 'keras.losses'

Open gkorland opened this issue 3 years ago • 2 comments

It seems like the demo is broken, due to updates in the some of the packages. Can you please lock the versions in requirements.txt?

gkorland avatar Mar 20 '21 19:03 gkorland

AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

gkorland avatar Mar 20 '21 20:03 gkorland

Thanks for reporting this. I unfortunately do not still have a running environment I used for this code, so your guess on compatible libraries is as good as mine. Based on the error messages though, this is most likely due to using pre 2.0 tensorflow. I'll try to take some time to get a version running and produce a pinned requirements.txt file but if you have the time to try, I encourage you to do so and submit a PR, and I'll be happy to merge it.

hundredblocks avatar Mar 22 '21 03:03 hundredblocks