Merken Sie den Termin vor! Google I / O kehrt vom 18. bis 20. Mai zurück Registrieren Sie sich jetzt


Creates an op that assigns target from source.

This utility function provides the exact same behavior as tf.Variable.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.nest, or instances of structure.Struct.
source A nested structure composed of tensors, matching that of target.

A single op that represents the assignment.

TypeError If types mismatch.