Commit 2d6039b2 authored by Yong Tang's avatar Yong Tang
Browse files

Fix warning in losses_utils.py



While debugging 24577 I noticed the following warning:
```
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/utils/losses_utils.py:170: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
```

This fix fixes the warning.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent cd8c6c99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment