tf中assign()函数可用于对变量进行更新包括变量的value和shape. 涉及以下函数: tf.assign(ref, value, validate_shape = None, use_locking = None, name=None) tf.assign_add(ref, value, use_locking = None, name=None) tf.assign_sub(ref, value, use_locking = None, name=None) tf.variable…