Assigns a new value to the variable. This is essentially a shortcut for `assign(self, value)`. Args: value: A `Tensor`. The new value for this variable. use_locking: If `True`, use locking during the assignment. name: The name of the operation to be created read_val
(self, value, use_locking=False, name=None, read_value=True)
| 772 | raise NotImplementedError |
| 773 | |
| 774 | def assign(self, value, use_locking=False, name=None, read_value=True): |
| 775 | """Assigns a new value to the variable. |
| 776 | |
| 777 | This is essentially a shortcut for `assign(self, value)`. |
| 778 | |
| 779 | Args: |
| 780 | value: A `Tensor`. The new value for this variable. |
| 781 | use_locking: If `True`, use locking during the assignment. |
| 782 | name: The name of the operation to be created |
| 783 | read_value: if True, will return something which evaluates to the new |
| 784 | value of the variable; if False will return the assign op. |
| 785 | |
| 786 | Returns: |
| 787 | A `Tensor` that will hold the new value of this variable after |
| 788 | the assignment has completed. |
| 789 | """ |
| 790 | raise NotImplementedError |
| 791 | |
| 792 | def assign_add(self, delta, use_locking=False, name=None, read_value=True): |
| 793 | """Adds a value to this variable. |
no outgoing calls