Skip to content
Permalink
Browse files

Serialize data in binary format, not ascii

  • Loading branch information...
Kyle Sorensen
Kyle Sorensen committed Oct 29, 2018
1 parent 50c5fd0 commit a7a57944ed15c8a3f353959f996b293b9737f955
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nupic/frameworks/opf/model.py
@@ -351,7 +351,7 @@ def save(self, saveModelDir):
with open(modelPickleFilePath, 'wb') as modelPickleFile:
logger.debug("(%s) Pickling Model instance...", self)

pickle.dump(self, modelPickleFile)
pickle.dump(self, modelPickleFile, protocol=pickle.HIGHEST_PROTOCOL)

logger.debug("(%s) Finished pickling Model instance", self)

0 comments on commit a7a5794

Please sign in to comment.
You can’t perform that action at this time.