@staticmethod<EOL><INDENT>def from_spec(spec, kwargs=None):<DEDENT>
memory = util.get_object(<EOL>obj=spec,<EOL>predefined_objects=tensorforce.core.memories.memories,<EOL>kwargs=kwargs<EOL>)<EOL>assert isinstance(memory, Memory)<EOL>return memory<EOL>
Creates a memory from a specification dict.