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: Subtracts given periods from given dates and rolls to business days.
  
  The original dates are not rolled prior to subtraction.
  
  Args:
    date_tensor: DateTensor of dates to subtract from.
    period_tensor: PeriodTensor broadcastable to `date_tensor`.
    roll_convention: BusinessDayConvention. Determines how to roll a date that
      falls on a holiday.
  
  Returns:
    The resulting DateTensor.
docstr_tok: ["Subtracts","given","periods","from","given","dates","and","rolls","to","business","days",".","The","original","dates","are","not","rolled","prior","to","subtraction",".","Args",":","date_tensor",":","DateTensor","of","dates","to","subtract","from",".","period_tensor",":","PeriodTensor","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_period_and_roll(
      self,
      date_tensor,
      period_tensor,
      roll_convention=constants.BusinessDayConvention.NONE,
  ):
      """Subtracts given periods from given dates and rolls to business days.
  
      The original dates are not rolled prior to subtraction.
  
      Args:
        date_tensor: DateTensor of dates to subtract from.
        period_tensor: PeriodTensor broadcastable to `date_tensor`.
        roll_convention: BusinessDayConvention. Determines how to roll a date that
          falls on a holiday.
  
      Returns:
        The resulting DateTensor.
      """
      minus_period_tensor = periods.PeriodTensor(
          -period_tensor.quantity(), period_tensor.period_type()
      )
      return self.add_period_and_roll(
          date_tensor, minus_period_tensor, 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 6 for calling the BoundedHolidayCalendar obj's underlying member method code with example usage: obj.subtract_period_and_roll(date_tensor, period_tensor, roll_convention) and returns: self