Skip to content

Commit

Permalink
[FIX] correct default argument for layer-specific values
Browse files Browse the repository at this point in the history
  • Loading branch information
yehjin-shin committed Oct 18, 2024
1 parent 464cd9d commit 1adfe4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/fearec.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def forward(self, hidden_states, attention_mask, output_all_encoded_layers=False
class FEARecBlock(nn.Module):
def __init__(self, args, layer_num):
super(FEARecBlock, self).__init__()
self.layer = FEARecLayer(args)
self.layer = FEARecLayer(args, layer_num)
self.feed_forward = FeedForward(args)

def forward(self, hidden_states, attention_mask):
Expand Down

0 comments on commit 1adfe4e

Please sign in to comment.