crested.tl.zoo.utils.activate

Contents

crested.tl.zoo.utils.activate#

crested.tl.zoo.utils.activate(current, activation, verbose=False, name=None)#

Apply activation function to a tensor.

Parameters:
  • current (KerasTensor) – Input tensor.

  • activation (str) – Activation function to apply.

  • verbose (bool (default: False)) – Print verbose information (default is False).

  • name (default: None) – Name to use in the activation layer. Default is None (no name).

Return type:

KerasTensor

Returns:

Output tensor after applying activation.