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():