Skip to content

Add documentation and python API for persistent cache#6046

Merged
jonb377 merged 1 commit intomasterfrom
jonbolin/pc-doc
Dec 7, 2023
Merged

Add documentation and python API for persistent cache#6046
jonb377 merged 1 commit intomasterfrom
jonbolin/pc-doc

Conversation

@jonb377
Copy link
Copy Markdown
Collaborator

@jonb377 jonb377 commented Dec 7, 2023

This change adds a Python API to activate the persistent cache, rather than controlling it exclusively through environment variables.

@jonb377 jonb377 self-assigned this Dec 7, 2023
Copy link
Copy Markdown
Collaborator

@will-cromar will-cromar left a comment

Choose a reason for hiding this comment

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

Nice! I prefer the Python API to the environment variables. +1 to eliminating env vars as the way we communicate between Python and C++

Comment thread torch_xla/runtime.py
Comment on lines +282 to +283
# TODO(jonbolin): Consider moving away from environment variables to control
# the cache.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yea I think it is a good idea to just drop env var going forward.

@jonb377 jonb377 merged commit a01de39 into master Dec 7, 2023
@jonb377 jonb377 deleted the jonbolin/pc-doc branch December 7, 2023 21:55
@jonb377 jonb377 mentioned this pull request Dec 7, 2023
@yeounoh
Copy link
Copy Markdown
Contributor

yeounoh commented Dec 7, 2023

cc @zpcore for visibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants