Commit 05f97f5e authored by Yong Tang's avatar Yong Tang
Browse files

Fix warning in keras base_layer_utils.py



While debugging 24741 I noticed the following warning:
```
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer_utils.py:125: calling Zeros.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
```

This fix update the base_layer_utils.py to remove the warning.
Note dtype is passed in the subsequent calls already so there is no need to
call with dtype in __init__ in this case.

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