'Tensor' object has no attribute 'assign' solution
💻problem
update= tf.assign zero new_value)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-11-22ec8ea000b1> in <module>() 9
10 #variable value can be chNGED ---> 11 update= tf.assign(zero,new_value) 12 13 #init_op = tf.initialize_all_variables()
AttributeError: module 'tensorflow' has no attribute 'assign'
💻Changes should be made
#variable value can be chNGEDupdate= tf.compat.v1.assign(zero,new_value)
Comments
Post a Comment