Skip to content

Commit 77d6992

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 28c7df2 commit 77d6992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

monai/data/dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __init__(
254254
this arg is used by `torch.save`, for more details, please check:
255255
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save,
256256
and ``monai.data.utils.SUPPORTED_PICKLE_MOD``.
257-
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
257+
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
258258
Defaults to torch.serialization.DEFAULT_PROTOCOL. For more details, please check:
259259
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save.
260260
hash_transform: a callable to compute hash from the transform information when caching.
@@ -461,7 +461,7 @@ def __init__(
461461
this arg is used by `torch.save`, for more details, please check:
462462
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save,
463463
and ``monai.data.utils.SUPPORTED_PICKLE_MOD``.
464-
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
464+
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
465465
Defaults to torch.serialization.DEFAULT_PROTOCOL. For more details, please check:
466466
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save.
467467
hash_transform: a callable to compute hash from the transform information when caching.
@@ -557,7 +557,7 @@ def __init__(
557557
defaults to `monai.data.utils.pickle_hashing`.
558558
db_name: lmdb database file name. Defaults to "monai_cache".
559559
progress: whether to display a progress bar.
560-
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
560+
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
561561
Defaults to torch.serialization.DEFAULT_PROTOCOL. For more details, please check:
562562
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save.
563563
hash_transform: a callable to compute hash from the transform information when caching.

monai/utils/state_cacher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
pickle_module: module used for pickling metadata and objects, default to `pickle`.
6565
this arg is used by `torch.save`, for more details, please check:
6666
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save.
67-
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
67+
pickle_protocol: specifies pickle protocol when saving, with `torch.save`.
6868
Defaults to torch.serialization.DEFAULT_PROTOCOL. For more details, please check:
6969
https://pytorch.org/docs/stable/generated/torch.save.html#torch.save.
7070

0 commit comments

Comments
 (0)