Skip to content

Commit

Permalink
Update R/PipeOpTaskPreprocTorch.R
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer authored Jan 23, 2024
1 parent 9dc507c commit fbe093f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/PipeOpTaskPreprocTorch.R
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,11 @@ create_ps = function(fn) {
args = list()

args = set_names(map(param_names, function(pn) {
p_uty(tags = if (is_required[pn]) c("train", "required") else "train")
if (is_required[pn]) {
p_uty(tags = c("train", "required"))
} else {
p_uty(default = "<unknown>", tags = "train")
}
}), param_names)

invoke(ps, .args = args)
Expand Down

0 comments on commit fbe093f

Please sign in to comment.