class_docstr: Represents a holiday calendar.
  
  Provides methods for manipulating the dates taking into account the holidays,
  and the business day roll conventions. Weekends are treated as holidays.
class_docstr_tok: ["Represents","a","holiday","calendar",".","Provides","methods","for","manipulating","the","dates","taking","into","account","the","holidays",",","and","the","business","day","roll","conventions",".","Weekends","are","treated","as","holidays","."]
docstr: Adds given number of business days to given dates.
  
  Note that this is different from calling `subtract_period_and_roll` with
  PeriodType.DAY. For example, subtracting 5 business days from Friday gives
  the previous Friday (unless there are holidays on this week or previous
  Friday). Subtracting 5 days and rolling means landing on Sunday and then
  rolling either to Monday or to Friday, depending on the roll convention.
  
  If any of the dates in `date_tensor` are not business days, they will be
  rolled to business days before doing the subtraction. If `roll_convention`
  is `NONE`, and any dates are not business days, an exception is raised.
  
  Args:
    date_tensor: DateTensor of dates to advance from.
    num_days: Tensor of int32 type broadcastable to `date_tensor`.
    roll_convention: BusinessDayConvention. Determines how to roll a date that
      falls on a holiday.
  
  Returns:
    The resulting DateTensor.
docstr_tok: ["Adds","given","number","of","business","days","to","given","dates",".","Note","that","this","is","different","from","calling","`","subtract_period_and_roll","`","with","PeriodType.DAY",".","For","example",",","subtracting","5","business","days","from","Friday","gives","the","previous","Friday","(","unless","there","are","holidays","on","this","week","or","previous","Friday",")",".","Subtracting","5","days","and","rolling","means","landing","on","Sunday","and","then","rolling","either","to","Monday","or","to","Friday",",","depending","on","the","roll","convention",".","If","any","of","the","dates","in","`","date_tensor","`","are","not","business","days",",","they","will","be","rolled","to","business","days","before","doing","the","subtraction",".","If","`","roll_convention","`","is","`","NONE","`",",","and","any","dates","are","not","business","days",",","an","exception","is","raised",".","Args",":","date_tensor",":","DateTensor","of","dates","to","advance","from",".","num_days",":","Tensor","of","int32","type","broadcastable","to","`","date_tensor","`",".","roll_convention",":","BusinessDayConvention",".","Determines","how","to","roll","a","date","that","falls","on","a","holiday",".","Returns",":","The","resulting","DateTensor","."]
code: def subtract_business_days(
      self,
      date_tensor,
      num_days,
      roll_convention=constants.BusinessDayConvention.NONE,
  ):
      """Adds given number of business days to given dates.
  
      Note that this is different from calling `subtract_period_and_roll` with
      PeriodType.DAY. For example, subtracting 5 business days from Friday gives
      the previous Friday (unless there are holidays on this week or previous
      Friday). Subtracting 5 days and rolling means landing on Sunday and then
      rolling either to Monday or to Friday, depending on the roll convention.
  
      If any of the dates in `date_tensor` are not business days, they will be
      rolled to business days before doing the subtraction. If `roll_convention`
      is `NONE`, and any dates are not business days, an exception is raised.
  
      Args:
        date_tensor: DateTensor of dates to advance from.
        num_days: Tensor of int32 type broadcastable to `date_tensor`.
        roll_convention: BusinessDayConvention. Determines how to roll a date that
          falls on a holiday.
  
      Returns:
        The resulting DateTensor.
      """
      pass
  
file_path: tf-quant-finance/tf_quant_finance/datetime/holiday_calendar.py
imports: import abc
  from tf_quant_finance.datetime import constants
label_desc: Use image node_id 6 for calling the HolidayCalendar obj's underlying member method code with example usage: obj.subtract_business_days(date_tensor, num_days, roll_convention) without return types