Skip to content

Commit cfef621

Browse files
Squashed commit of the following:
commit ed571f728a351f8dd92737be5554c3dc46f71a30 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Tue Jul 29 09:20:06 2025 -0600 Remove cache tests commit 2848f7b2785b91c60c536b8993c3193c40c381ea Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Mon Jul 28 08:07:01 2025 -0600 Add leading underscores, revert model name commit c30b7b70a0f6e464d3212fd9bed4f9ea33f9de93 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Mon Jul 28 07:15:08 2025 -0600 Explictly clear cache paths commit 42aaf666d7f8ffb2fb611df7ad2d06b48e480dd7 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Mon Jul 28 07:14:23 2025 -0600 Set the cache dir in conftest commit b978e7225f02bf1d9a5f7b919ca6cbe2ee8d641a Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Mon Jul 28 06:15:10 2025 -0600 run formatting commit 8d64df08333991927c45f9a982ddaf95f39c94cf Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Fri Jul 25 11:18:13 2025 -0600 refactor cache miss into fixture commit 0b524b8c818495cb646add2adfc27a2884ac8de5 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Fri Jul 25 07:11:09 2025 -0600 Consolidate cache test with common commit d8a36d405a101e101ab9ede3b8d12fa3026cd01f Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Fri Jul 25 06:41:13 2025 -0600 Run cache test first commit 2efb797fb21587e9136b314c44ec56c658636826 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Fri Jul 25 05:48:25 2025 -0600 Finish splitting out common shape test helpers commit 4ae73dea18848005f86d1c9bcdf29f153711330f Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Fri Jul 25 05:28:31 2025 -0600 refactor most of common shape test commit 083afdc3a468649ec4b0bbadc921d40b47e37498 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Thu Jul 24 14:08:20 2025 -0600 Move torch sendnn cache dir to common commit e9b576381a738c59f91d5fc904ceaa2a0e410864 Author: Alex-Brooks <Alex.Brooks@ibm.com> Date: Thu Jul 24 14:02:06 2025 -0600 Use caps for constants, common post proc
1 parent 06cd251 commit cfef621

File tree

2 files changed

+432
-493
lines changed

2 files changed

+432
-493
lines changed

tests/models/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def pytest_sessionstart(session):
2323
os.environ.setdefault("DTLOG_LEVEL", "error")
2424
os.environ.setdefault("DT_DEEPRT_VERBOSE", "-1")
2525

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")
29+
2630

2731
def pytest_addoption(parser):
2832
parser.addoption(

0 commit comments

Comments
 (0)