tf.compat.v1.assign

View source on GitHub

Update ref by assigning value to it.

tf.compat.v1.assign(
    ref, value, validate_shape=None, use_locking=None, name=None
)

This operation outputs a Tensor that holds the new value of ref after the value has been assigned. This makes it easier to chain operations that need to use the reset value.

Args:

Returns:

A Tensor that will hold the new value of ref after the assignment has completed.