Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

This is a desperate attempt to make TensorCache a little more stable #5334

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

dirkgr
Copy link
Member

@dirkgr dirkgr commented Jul 26, 2021

No description provided.

@dirkgr dirkgr self-assigned this Jul 26, 2021
Copy link
Contributor

@AkshitaB AkshitaB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. Just a question about how we specify the arguments.

@@ -641,8 +641,8 @@ def __init__(
str(filename),
subdir=False,
map_size=map_size,
max_readers=cpu_count * 2,
max_spare_txns=cpu_count * 2,
max_readers=cpu_count * 4,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have an option to specify the kwargs in TensorCache's init? Or do we want to shield the users from the gory details?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to shield users from this. It seems like an implementation detail. Another implementation might not have that setting at all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@dirkgr dirkgr merged commit 8714aa0 into main Jul 27, 2021
@dirkgr dirkgr deleted the TensorCachePatch branch July 27, 2021 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants