Skip to content

Commit

Permalink
Update serialization for mem change
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Oct 13, 2017
1 parent faf86b1 commit 2a1ec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thinc/neural/_classes/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def to_bytes(self):
weights[-1][b'seed'] = layer.seed

offsets = sorted(layer._mem._offsets.items())
for (id_, name), (start, row, shape) in offsets:
for (id_, name), (start, row, shape, size) in offsets:
if row == 1:
continue
param = layer._mem.get((id_, name))
Expand Down

0 comments on commit 2a1ec8b

Please sign in to comment.