tff.utils.assign( target, source )
Creates an op that assigns
This utility function provides the exact same behavior as
tf.assign, but it
generalizes to a wider class of objects, including ordinary variables as well as
various types of nested structures.
target: A nested structure composed of variables embedded in containers that are compatible with
tf.contrib.framework.nest, or instances of
source: A nsested structure composed of tensors, matching that of
A single op that represents the assignment.
TypeError: If types mismatch.