activations
- class symm_learning.nn.activations.Mish(in_type)[source]
Mish activation function.
- evaluate_output_shape(input_shape)[source]
Compute the shape the output tensor which would be generated by this module when a tensor with shape
input_shapeis provided as input.- Parameters:
input_shape (tuple) – shape of the input tensor
- Returns:
shape of the output tensor
- 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
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.