class_docstr: HolidayCalendar implementation.
  
  Requires the calendar to be bounded. Constructs tables of precomputed values
  of interest for each day in the calendar, which enables better performance
  compared to a more flexible UnboundedHolidayCalendar.
  
  Each instance should be used in the context of only one graph. E.g. one can't
  create a BoundedHolidayCalendar in one tf.function and reuse it in another.
class_docstr_tok: ["HolidayCalendar","implementation",".","Requires","the","calendar","to","be","bounded",".","Constructs","tables","of","precomputed","values","of","interest","for","each","day","in","the","calendar",",","which","enables","better","performance","compared","to","a","more","flexible","UnboundedHolidayCalendar",".","Each","instance","should","be","used","in","the","context","of","only","one","graph",".","E.g",".","one","can't","create","a","BoundedHolidayCalendar","in","one","tf.function","and","reuse","it","in","another","."]
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.
      """
      return self.add_business_days(
          date_tensor, -num_days, roll_convention
      )
  
imports: import attr
  import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import date_tensor
  from tf_quant_finance.datetime import holiday_calendar
  from tf_quant_finance.datetime import periods
label_desc: Use image node_id 7 for calling the BoundedHolidayCalendar obj's underlying member method code with example usage: obj.subtract_business_days(date_tensor, num_days, roll_convention) and returns: self