Skip to content

Commit

Permalink
Try to make serialization work on py2/3
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Jun 1, 2017
1 parent ceb9993 commit e2cab07
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 @@ -308,7 +308,7 @@ def from_bytes(self, bytes_data):
queue = [self]
i = 0
for layer in queue:
if hasattr(layer, b'_mem'):
if hasattr(layer, '_mem'):
if b'seed' in weights[i]:
layer.seed = weights[i][b'seed']
for dim, value in weights[i][b'dims'].items():
Expand Down

0 comments on commit e2cab07

Please sign in to comment.