Adaptive Function Interface#

Module for the Adaptive Function Interface.

class AdaptiveFunctionInterface[source]#

Bases: object

Abstract interface for all adaptive functions.

abstract forward(x)[source]#

Compute the transformation of the adaptive function on the input.

Parameters:

x (torch.Tensor | LabelTensor) – The input tensor to evaluate the adaptive function.

Returns:

The output of the adaptive function.

Return type:

torch.Tensor | LabelTensor

abstract property alpha#

The output scaling parameter of the adaptive function.

Returns:

The alpha parameter.

Return type:

torch.nn.Parameter | torch.Tensor

abstract property beta#

The input scaling parameter of the adaptive function.

Returns:

The beta parameter.

Return type:

torch.nn.Parameter | torch.Tensor

abstract property gamma#

The input shifting parameter of the adaptive function.

Returns:

The gamma parameter.

Return type:

torch.nn.Parameter | torch.Tensor