Skip to content

Commit 15f0eb5

Browse files
mccleericspod
andauthored
Update PersistentDataset docstring
Co-authored-by: Eric Kerfoot <[email protected]> Signed-off-by: Mason C. Cleveland <[email protected]>
1 parent c2d9be8 commit 15f0eb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

monai/data/dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def __init__(
271271
weights_only: keyword argument passed to `torch.load` when reading cached files.
272272
default to `True`. When set to `True`, `torch.load` restricts loading to tensors and
273273
other safe objects. Setting this to `False` is required for loading `MetaTensor`
274-
objects saved with `track_meta=True`.
274+
objects saved with `track_meta=True`, however this creates the possibility of remote
275+
code execution through `torch.load` so be aware of the security implications of doing so.
275276
276277
Raises:
277278
ValueError: When both `track_meta=True` and `weights_only=True`, since this combination

0 commit comments

Comments
 (0)