elu

dragon.vm.torch.nn.functional.elu(
  input,
  alpha=1.0,
  inplace=False
)[source]

Apply the exponential linear unit to input. [Clevert et.al, 2015].

Parameters:
  • input (dragon.vm.torch.Tensor) – The input tensor.
  • alpha (float, optional, default=1.0) – The value to \(\alpha\).
  • inplace (bool, optional, default=False) – Whether to do the operation in-place.
Returns:

dragon.vm.torch.Tensor – The output tensor.