@classmethod<EOL><INDENT>def readFromCheckpoint(cls, checkpointDir):<DEDENT>
checkpointPath = cls._getModelCheckpointFilePath(checkpointDir)<EOL>with open(checkpointPath, '<STR_LIT:r>') as f:<EOL><INDENT>proto = cls.getSchema().read(f,<EOL>traversal_limit_in_words=_TRAVERSAL_LIMIT_IN_WORDS)<EOL><DEDENT>model = cls.read(proto)<EOL>return model<EOL>
Deserializes model from checkpointDir using capnproto