parameters: (self,
                   var,
                   value,
                   use_locking=False,
                   name=None,
                   read_value=True)
docstring: Subtracts a value from this variable.
docstring_summary: Subtracts a value from this variable.
docstring_tokens: Subtracts a value from this variable .
function: def assign_sub(self,
                   var,
                   value,
                   use_locking=False,
                   name=None,
                   read_value=True):
      """Subtracts a value from this variable."""
      with ds_context.enter_or_assert_strategy(var.distribute_strategy):
        if (ds_context.in_cross_replica_context() and
            not values_util.in_replica_update_context()):
          values_util.mark_as_unsaveable()
          return values_util.on_read_assign_sub_cross_replica(
              var, value, read_value=read_value)
        else:
          return values_util.on_write_assign_sub(
              var,
              value,
              use_locking=use_locking,
              name=name,
              read_value=read_value)
function_tokens: def assign_sub ( self , var , value , use_locking = False , name = None , read_value = True ) : with ds_context . enter_or_assert_strategy ( var . distribute_strategy ) : if ( ds_context . in_cross_replica_context ( ) and not values_util . in_replica_update_context ( ) ) : values_util . mark_as_unsaveable ( ) return values_util . on_read_assign_sub_cross_replica ( var , value , read_value = read_value ) else : return values_util . on_write_assign_sub ( var , value , use_locking = use_locking , name = name , read_value = read_value )