diff --git a/monai/engines/utils.py b/monai/engines/utils.py index 9095f8d943..6fdd8d1081 100644 --- a/monai/engines/utils.py +++ b/monai/engines/utils.py @@ -219,8 +219,8 @@ def __call__( `kwargs` supports other args for `Tensor.to()` API. """ image, label = default_prepare_batch(batchdata, device, non_blocking, **kwargs) - args_ = list() - kwargs_ = dict() + args_ = [] + kwargs_ = {} def _get_data(key: str) -> torch.Tensor: data = batchdata[key]