Skip to content

Commit

Permalink
- Update BART settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jalammar committed Jan 9, 2022
1 parent 17bebb3 commit 58620b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecco/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def _inhibit_neurons_hook(self, name: str, input_tensor):
of the neurons indicated in self.neurons_to_inhibit
"""

layer_number = int(name.split('.')[2])
layer_number = re.search("(?<=\.)\d+(?=\.)", name).group(0)
if layer_number in self.neurons_to_inhibit.keys():
# print('layer_number', layer_number, input_tensor[0].shape)

Expand Down

0 comments on commit 58620b3

Please sign in to comment.