Skip to content

Commit

Permalink
Slight semantic change
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanradev93 committed Jun 12, 2024
1 parent 5152b5c commit 8f195c2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
layer = layers.SpectralNormalization(layer)
self.equivariant_fc.add(layer)

self.ln = layers.LayerNormalization() if layer_norm else None
self.layer_norm = layers.LayerNormalization() if layer_norm else None

def call(self, input_set: Tensor, **kwargs) -> Tensor:
"""Performs the forward pass of a learnable equivariant transform.
Expand Down Expand Up @@ -101,8 +101,8 @@ def call(self, input_set: Tensor, **kwargs) -> Tensor:

# Pass through final equivariant transform + residual
output_set = input_set + self.equivariant_fc(output_set, training=training)
if self.ln is not None:
output_set = self.ln(output_set, training=training)
if self.layer_norm is not None:
output_set = self.layer_norm(output_set, training=training)

return output_set

Expand Down

0 comments on commit 8f195c2

Please sign in to comment.