question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`doc_ids_memmap` shape

See original GitHub issue

https://github.com/lucidrains/RETRO-pytorch/blob/7d305379b72232c54262742d3f80326ed5fdac9e/retro_pytorch/retrieval.py#L138

Is there a reason doc_ids_memmap is shape (max_docs, )? Shouldn’t it be (max_chunks, ) since it’s mapping chunks to doc ids?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
josephcappadonacommented, Feb 8, 2022

@lucidrains Depends what you mean by knowledge graphs, but yes, probably something like that. I’m currently exploring some papers and datasets to figure out what might be interesting experiments to run. I’m currently especially intrigued by this paper: Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents. But there are a few other directions I could see myself going.

1reaction
lucidrainscommented, Feb 8, 2022

@josephcappadona you are right! fixed in 0.1.6!

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy.memmap.shape — NumPy v1.24 Manual
The shape property is usually used to get the current shape of an array, but may also be used to reshape the array...
Read more >
numpy.memmap.shape — NumPy v1.10 Manual
memmap.shape¶. Tuple of array dimensions. Notes. May be used to “reshape” the array, as long as this would not require a change in...
Read more >
load np.memmap without knowing shape - Stack Overflow
load doesn't work in such case: I have to read it again using memmap in read mode. The question is, how to do...
Read more >
numpy.memmap.shape — NumPy v1.9 Manual
memmap.shape¶. Tuple of array dimensions. Notes. May be used to “reshape” the array, as long as this would not require a change in...
Read more >
Pitfalls to avoid with np.memmap. numpy version - Medium
I think the function can be improved if it throws a warning/error that the saved file has more bytes than required for given...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found