I use tensorflow '2.15.0'.
Since this code was written using tf1, I am importing tensorflow as:
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
I receive the following error.
Node: 'ExponentialDecay_3/Cast_2/ReadVariableOp' 2 root error(s) found. (0) FAILED_PRECONDITION: Could not find variable iteration_3. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status error message=Resource localhost/iteration_3/N10tensorflow3VarE does not exist. [[{{node ExponentialDecay_3/Cast_2/ReadVariableOp}}]] [[GroupCrossDeviceControlEdges_0/init_8/_1]] (1) FAILED_PRECONDITION: Could not find variable iteration_3. This could mean that the variable has been deleted. In TF1, it can also mean the variable is uninitialized. Debug info: container=localhost, status error message=Resource localhost/iteration_3/N10tensorflow3VarE does not exist. [[{{node ExponentialDecay_3/Cast_2/ReadVariableOp}}]] 0 successful operations. 0 derived errors ignored.