From e7f3f5862a00860ea8569c85ed318f0a56142415 Mon Sep 17 00:00:00 2001 From: zjgemi Date: Mon, 4 Mar 2024 16:34:30 +0800 Subject: [PATCH] update readme for create_dir Signed-off-by: zjgemi --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2cdb1e2b..78b7b878 100644 --- a/README.md +++ b/README.md @@ -535,6 +535,8 @@ for item in range(5): ``` where `with_param` and `slices` corresponds to the `for` loop and the statement in loop in the pseudocode, respectively. +Note that this feature merges the sliced output artifacts by default, which means the relative path in the output artifact of each slice is remained in the merged artifact. This could potentially lead to overwriting issues due to path conflicts. To create a separate dir for each slice for saving output artifacts, set `create_dir=True`. + - [Slices example](examples/test_slices.py) It should be noticed that this feature, by default, passes full input artifacts to each parallel step which may only use some slices of these artifacts. In contrast, the subpath mode of slices only passes one single slice of the input artifacts to each parallel step. To use the subpath mode of slices,