Skip to content

Commit

Permalink
Merge pull request #317 from uclmr/sr_branch
Browse files Browse the repository at this point in the history
fix to instantiate memory map embeddings with the right format string
  • Loading branch information
undwie authored Oct 25, 2017
2 parents e2a5d31 + bf16476 commit 6e95339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jack/io/embeddings/memory_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_memory_map_dir(directory: str) -> Embeddings:
shape = tuple(meta['shape'])
vocab = meta['vocab']
mem_map = np.memmap(mem_map_file, dtype='float32', mode='r+', shape=shape)
result = Embeddings(vocab, mem_map, filename=directory, emb_format="mem_map_dir")
result = Embeddings(vocab, mem_map, filename=directory, emb_format="memory_map_dir")
return result


Expand Down

0 comments on commit 6e95339

Please sign in to comment.