tf_quant_finance.datetime.utils.is_leap_year

Contents

Last updated: 2023-03-16.

tf_quant_finance.datetime.utils.is_leap_year#

View source

Calculates whether years are leap years.

tf_quant_finance.datetime.utils.is_leap_year(
    years
)

Args:#

  • years: Tensor of int32 type. Elements should be positive.

Returns:#

Tensor of bool type.