class_docstr: HolidayCalendar implementation.
  
  Unlike BoundedHolidayCalendar, doesn't require specifying calendar bounds, and
  supports weekends and holiday supplied as `Tensor`s. However, it is
  (potentially significantly) slower than the dates.HolidayCalendar
  implementation.
class_docstr_tok: ["HolidayCalendar","implementation",".","Unlike","BoundedHolidayCalendar",",","does","n't","require","specifying","calendar","bounds",",","and","supports","weekends","and","holiday","supplied","as","`","Tensor","`","s",".","However",",","it","is","(","potentially","significantly",")","slower","than","the","dates.HolidayCalendar","implementation","."]
docstr: Initializer.
  
  Args:
    weekend_mask: Boolean `Tensor` of 7 elements one for each day of the week
      starting with Monday at index 0. A `True` value indicates the day is
      considered a weekend day and a `False` value implies a week day.
      Default value: None which means no weekends are applied.
    holidays: Defines the holidays that are added to the weekends defined by
      `weekend_mask`. An instance of `dates.DateTensor` or an object
      convertible to `DateTensor`.
      Default value: None which means no holidays other than those implied by
        the weekends (if any).
docstr_tok: ["Initializer",".","Args",":","weekend_mask",":","Boolean","`","Tensor","`","of","7","elements","one","for","each","day","of","the","week","starting","with","Monday","at","index","0",".","A","`","True","`","value","indicates","the","day","is","considered","a","weekend","day","and","a","`","False","`","value","implies","a","week","day",".","Default","value",":","None","which","means","no","weekends","are","applied",".","holidays",":","Defines","the","holidays","that","are","added","to","the","weekends","defined","by","`","weekend_mask","`",".","An","instance","of","`","dates.DateTensor","`","or","an","object","convertible","to","`","DateTensor","`",".","Default","value",":","None","which","means","no","holidays","other","than","those","implied","by","the","weekends","(","if","any",")","."]
code: def __init__(self, weekend_mask=None, holidays=None):
      """Initializer.
  
      Args:
        weekend_mask: Boolean `Tensor` of 7 elements one for each day of the week
          starting with Monday at index 0. A `True` value indicates the day is
          considered a weekend day and a `False` value implies a week day.
          Default value: None which means no weekends are applied.
        holidays: Defines the holidays that are added to the weekends defined by
          `weekend_mask`. An instance of `dates.DateTensor` or an object
          convertible to `DateTensor`.
          Default value: None which means no holidays other than those implied by
            the weekends (if any).
      """
      if weekend_mask is not None:
          weekend_mask = tf.cast(weekend_mask, dtype=tf.bool)
      if holidays is not None:
          holidays = dt.convert_to_date_tensor(holidays).ordinal()
      (
          self._to_biz_space,
          self._from_biz_space,
      ) = hol.business_day_mappers(
          weekend_mask=weekend_mask, holidays=holidays
      )
  
file_path: tf-quant-finance/tf_quant_finance/datetime/unbounded_holiday_calendar.py
imports: 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 date_utils
  from tf_quant_finance.datetime import holiday_calendar
  from tf_quant_finance.datetime import holiday_utils
  from tf_quant_finance.datetime import periods
label_desc: Use image node_id 1 to create a new UnboundedHolidayCalendar object from inherited base classes: holiday_calendar with example: obj = UnboundedHolidayCalendar(weekend_mask, holidays)