Skip to content

Commit

Permalink
Merge pull request #6 from kondounagi/codespace-kondounagi-verbose-sp…
Browse files Browse the repository at this point in the history
…ace-journey-54pgjrx5r7j39gg

docs: how to check memory usage
  • Loading branch information
matsui528 authored Jun 14, 2023
2 parents ecc1b47 + 77d82fb commit 0193ccb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,8 @@ Out[2]:
'SSE42',
'SSSE3'}
```


## Check memory usage
When you would like to check memory usage of faiss, you should call `faiss.get_mem_usage_kb()`.
See [the example usage](https://github.com/facebookresearch/faiss/blob/d8a63506075456dc8016fd33ddf0f34d47c3a1b6/benchs/bench_all_ivf/bench_all_ivf.py#L301) and [the implementation](https://github.com/facebookresearch/faiss/blob/d8a63506075456dc8016fd33ddf0f34d47c3a1b6/faiss/utils/utils.cpp#L158) for more detail.

0 comments on commit 0193ccb

Please sign in to comment.