We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d870a24 commit 3471879Copy full SHA for 3471879
tests/models/conftest.py
@@ -25,7 +25,7 @@ def pytest_sessionstart(session):
25
26
# NOTE: we should configure the cachedir before importing torchsendnn's
27
# graph cache to prevent it from being initialized in the wrong place.
28
- os.environ["TORCH_SENDNN_CACHE_DIR"] = os.path.join(os.getcwd(), ".cache")
+ os.environ.setdefault("TORCH_SENDNN_CACHE_DIR", os.path.join(os.getcwd(), ".cache"))
29
30
31
def pytest_addoption(parser):
0 commit comments