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: Rolls the given dates to business dates according to given convention.
  
  Args:
    date_tensor: DateTensor of dates to roll from.
    roll_convention: BusinessDayConvention. Determines how to roll a date that
      falls on a holiday.
  
  Returns:
    The resulting DateTensor.
docstr_tok: ["Rolls","the","given","dates","to","business","dates","according","to","given","convention",".","Args",":","date_tensor",":","DateTensor","of","dates","to","roll","from",".","roll_convention",":","BusinessDayConvention",".","Determines","how","to","roll","a","date","that","falls","on","a","holiday",".","Returns",":","The","resulting","DateTensor","."]
code: def roll_to_business_day(self, date_tensor, roll_convention):
      """Rolls the given dates to business dates according to given convention.
  
      Args:
        date_tensor: DateTensor of dates to roll from.
        roll_convention: BusinessDayConvention. Determines how to roll a date that
          falls on a holiday.
  
      Returns:
        The resulting DateTensor.
      """
      if roll_convention == constants.BusinessDayConvention.NONE:
          return date_tensor
      rolled_ordinals_table = self._compute_rolled_dates_table(
          roll_convention
      )
      ordinals_with_offset = (
          date_tensor.ordinal() - self._ordinal_offset + 1
      )
      rolled_ordinals = self._gather(
          rolled_ordinals_table, ordinals_with_offset
      )
      with tf.control_dependencies(
          self._assert_ordinals_in_bounds(rolled_ordinals)
      ):
          return dt.from_ordinals(rolled_ordinals, validate=False)
  
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 3 for calling the BoundedHolidayCalendar obj's underlying member method code with example usage: obj.roll_to_business_day(date_tensor, roll_convention) and returns: date_tensor, dt