SAU#

class myoverse.models.components.activation_functions.SAU(alpha=0.15, n=20000)[source]#

SAU activation function from Biswas et al.

Parameters:
  • alpha (float, optional) – The alpha parameter, by default 0.15.

  • n (int, optional) – The n parameter, by default 20000.

References

Biswas, K., Kumar, S., Banerjee, S., Pandey, A.K., 2021. SAU: Smooth activation function using convolution with approximate identities. arXiv:2109.13210 [cs].

Initialize internal Module state, shared by both nn.Module and ScriptModule.

Methods

__init__([alpha, n])

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

forward(x)[source]#

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

Parameters:

x (Tensor)

Return type:

Tensor