From e2cab072126c7af27f44d43759b5ad3e58c487af Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 1 Jun 2017 06:14:47 -0500 Subject: [PATCH] Try to make serialization work on py2/3 --- thinc/neural/_classes/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thinc/neural/_classes/model.py b/thinc/neural/_classes/model.py index 41ec6c63d..94a436e1f 100644 --- a/thinc/neural/_classes/model.py +++ b/thinc/neural/_classes/model.py @@ -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():