Skip to content

Commit

Permalink
Merge branch 'fix/update-dense-weight-id' into 'main'
Browse files Browse the repository at this point in the history
Update dense weight id

See merge request es/ai/hannah/hannah!381
  • Loading branch information
moreib committed Apr 18, 2024
2 parents f7bf3a3 + 8b49fce commit cbd819c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hannah/nas/functional_operators/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def __call__(self, *operands) -> Any:
new_linear = super().__call__(*operands)
new_linear.in_features = operands[1].shape()[0]
new_linear.out_features = operands[1].shape()[1]
operands[1].id = f"{new_linear.id}.{operands[1].id}"
return new_linear

def shape_fun(self):
Expand Down

0 comments on commit cbd819c

Please sign in to comment.