Subtracts a value from this variable. This is essentially a shortcut for `assign_sub(self, delta)`. Args: delta: A `Tensor`. The value to subtract from this variable. use_locking: If `True`, use locking during the operation. name: The name of the operation to be created
(self, delta, use_locking=False, name=None, read_value=True)
| 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. |
| 812 | |
| 813 | This is essentially a shortcut for `assign_sub(self, delta)`. |
| 814 | |
| 815 | Args: |
| 816 | delta: A `Tensor`. The value to subtract from this variable. |
| 817 | use_locking: If `True`, use locking during the operation. |
| 818 | name: The name of the operation to be created |
| 819 | read_value: if True, will return something which evaluates to the new |
| 820 | value of the variable; if False will return the assign op. |
| 821 | |
| 822 | Returns: |
| 823 | A `Tensor` that will hold the new value of this variable after |
| 824 | the subtraction has completed. |
| 825 | """ |
| 826 | raise NotImplementedError |
| 827 | |
| 828 | def scatter_sub(self, sparse_delta, use_locking=False, name=None): |
| 829 | """Subtracts `tf.IndexedSlices` from this variable. |
no outgoing calls