Skip to content

Commit

Permalink
Revert "fix Project-MONAI#6974"
Browse files Browse the repository at this point in the history
This reverts commit 9157e77.
  • Loading branch information
KumoLiu committed Sep 13, 2023
1 parent 9157e77 commit 4aa85fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion monai/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _transform(self, index: int):
Fetch single data item from `self.data`.
"""
data_i = self.data[index]
return apply_transform(self.transform, data_i, lazy=self.transform.lazy) if self.transform is not None else data_i
return apply_transform(self.transform, data_i) if self.transform is not None else data_i

def __getitem__(self, index: int | slice | Sequence[int]):
"""
Expand Down
4 changes: 2 additions & 2 deletions monai/transforms/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def apply_transform(
map_items: bool = True,
unpack_items: bool = False,
log_stats: bool | str = False,
lazy: bool | None = False,
lazy: bool | None = None,
overrides: dict | None = None,
) -> list[ReturnType] | ReturnType:
"""
Expand All @@ -124,7 +124,7 @@ def apply_transform(
disables the logger for processing pipeline errors. Setting it to None or True will enable logging to the
default logger name. Setting it to a string specifies the logger to which errors should be logged.
lazy: whether to execute in lazy mode or not. See the :ref:`Lazy Resampling topic<lazy_resampling> for more
information about lazy resampling.
information about lazy resampling.
overrides: optional overrides to apply to transform parameters. This parameter is ignored unless transforms
are being executed lazily. See the :ref:`Lazy Resampling topic<lazy_resampling> for more details and
examples of its usage.
Expand Down

0 comments on commit 4aa85fc

Please sign in to comment.