Understanding WARNING: calling BaseResourceVariable.__init__ with constraint is deprecated and will be removed in a future version

Viewed 237

I have a code using Tensorflow low level API. I am getting the Warning:

WARNING:tensorflow:From /home/barrachina/anaconda3/envs/tf-2-gpu/lib/python3.7/site-packages/tensorflow/python/ops/resource_variable_ops.py:1817: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.

Here and here it says is low level and internal to Keras so I can ignore it but in my case is probably something I am doing wrong (I barely use keras at all). Therefore, I need to UNDERSTAND why this is happening to see if I can find the problem.

0 Answers
Related