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: Calculates number of business between pairs of dates.
  
  For each pair, the initial date is included in the difference, and the final
  date is excluded. If the final date is the same or earlier than the initial
  date, zero is returned.
  
  Args:
    from_dates: `DateTensor` of initial dates.
    to_dates: `DateTensor` of final dates, should be broadcastable to
      `from_dates`.
  
  Returns:
     An int32 Tensor with the number of business days between the
     corresponding pairs of dates.
docstr_tok: ["Calculates","number","of","business","between","pairs","of","dates",".","For","each","pair",",","the","initial","date","is","included","in","the","difference",",","and","the","final","date","is","excluded",".","If","the","final","date","is","the","same","or","earlier","than","the","initial","date",",","zero","is","returned",".","Args",":","from_dates",":","`","DateTensor","`","of","initial","dates",".","to_dates",":","`","DateTensor","`","of","final","dates",",","should","be","broadcastable","to","`","from_dates","`",".","Returns",":","An","int32","Tensor","with","the","number","of","business","days","between","the","corresponding","pairs","of","dates","."]
code: def business_days_between(self, from_dates, to_dates):
      """Calculates number of business between pairs of dates.
  
      For each pair, the initial date is included in the difference, and the final
      date is excluded. If the final date is the same or earlier than the initial
      date, zero is returned.
  
      Args:
        from_dates: `DateTensor` of initial dates.
        to_dates: `DateTensor` of final dates, should be broadcastable to
          `from_dates`.
  
      Returns:
         An int32 Tensor with the number of business days between the
         corresponding pairs of dates.
      """
      from_biz, from_is_bizday = self._to_biz_space(
          dt.convert_to_date_tensor(from_dates).ordinal()
      )
      to_biz, to_is_bizday = self._to_biz_space(
          dt.convert_to_date_tensor(to_dates).ordinal()
      )
      from_biz = tf.where(from_is_bizday, from_biz, from_biz + 1)
      to_biz = tf.where(to_is_bizday, to_biz, to_biz + 1)
      return tf.math.maximum(to_biz - from_biz, 0)
  
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 10 for calling the UnboundedHolidayCalendar obj's underlying member method code with example usage: obj.business_days_between(from_dates, to_dates) and returns: tf