Adds a value to this variable. This is essentially a shortcut for `assign_add(self, delta)`. Args: delta: A `Tensor`. The value to add to this variable. use_locking: If `True`, use locking during the operation. name: The name of the operation to be created read_val
(self, delta, use_locking=False, name=None, read_value=True)
| 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. |
| 794 | |
| 795 | This is essentially a shortcut for `assign_add(self, delta)`. |
| 796 | |
| 797 | Args: |
| 798 | delta: A `Tensor`. The value to add to this variable. |
| 799 | use_locking: If `True`, use locking during the operation. |
| 800 | name: The name of the operation to be created |
| 801 | read_value: if True, will return something which evaluates to the new |
| 802 | value of the variable; if False will return the assign op. |
| 803 | |
| 804 | Returns: |
| 805 | A `Tensor` that will hold the new value of this variable after |
| 806 | the addition has completed. |
| 807 | """ |
| 808 | raise NotImplementedError |
| 809 | |
| 810 | def assign_sub(self, delta, use_locking=False, name=None, read_value=True): |
| 811 | """Subtracts a value from this variable. |
no outgoing calls