Skip to content

[MAINT] Tensorflow 2.0 compatibility #235

@rbavery

Description

@rbavery

When Tensorflow 2.0 is out of beta, solaris will need to deal with these parts of the code, which have been renamed. The deprecation warnings appear when using tensorflow 1.14 but they turn into errors with tensorflow 2.0 beta.

W0816 21:32:30.784060 140233658926912 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/solaris/nets/metrics.py:103: The name tf.keras.metrics.cosine_proximity is deprecated. Please use tf.keras.losses.cosine_similarity instead.

W0816 21:32:32.026067 140233658926912 deprecation_wrapper.py:119] From /usr/local/lib/python3.6/dist-packages/solaris/nets/_keras_losses.py:104: The name tf.keras.losses.cosine is deprecated. Please use tf.keras.losses.cosine_similarity instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions