Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner committed Jan 11, 2025
1 parent e83055c commit 5003e00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gpt/ml/layer/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ def _contract(self, w, f):
return ret

def __call__(self, weights, layer_input):
layer_input = g.util.to_list(layer_input)
w = self._get_weight_list(weights)
return self._contract(w, layer_input)

def projected_gradient_adj(self, weights, layer_input, left):
layer_input = g.util.to_list(layer_input)
left = g.util.to_list(left)

assert len(weights) == 1
Expand Down

0 comments on commit 5003e00

Please sign in to comment.