Skip to content

Commit f49909a

Browse files
committed
fix: init cache when parent dir does not exist
1 parent 2a36468 commit f49909a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Bug Fixes
44

55
* `t_opt("adamw")` now actually uses AdamW and not Adam.
6+
* Caching: Cache directory is now created, even if its parent
7+
directory does not exist.
68

79
# mlr3torch 0.3.1
810

R/cache.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ get_cache_dir = function(cache = NULL) {
2525
cache = R_user_dir("mlr3torch", "cache")
2626
}
2727

28-
assert(check_directory_exists(cache), check_path_for_output(cache),
29-
.var.name = "cache is a valid path")
3028
normalizePath(cache, mustWork = FALSE)
3129
}
3230

0 commit comments

Comments
 (0)