Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

nsl.configs.DecayConfig

View source on GitHub

Class DecayConfig

DecayConfig contains configs for computing decayed value.

Attributes:

  • decay_steps: A scalar int32 or int64 Tensor or a Python number. How often to apply decay. Must be positive.
  • decay_rate: A scalar float32 or float64 Tensor or a Python number. Default set to 0.96.
  • min_value: minimal acceptable value after applying decay. Default set to 0.0
  • decay_type: Type of decay function to apply. Default set to DecayType.EXPONENTIAL_DECAY.

__init__

__init__(
    decay_steps,
    decay_rate=attr_dict['decay_rate'].default,
    min_value=attr_dict['min_value'].default,
    decay_type=nsl.configs.DecayType.EXPONENTIAL_DECAY
)

Initialize self. See help(type(self)) for accurate signature.

Methods

__eq__

__eq__(other)

Return self==value.

__ge__

__ge__(other)

Automatically created by attrs.

__gt__

__gt__(other)

Automatically created by attrs.

__le__

__le__(other)

Automatically created by attrs.

__lt__

__lt__(other)

Automatically created by attrs.

__ne__

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.