Skip to content

Commit 94a465b

Browse files
Reverting this, not quite sure about this one
Signed-off-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
1 parent 9c2bcff commit 94a465b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monai/engines/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _get_data(key: str) -> torch.Tensor:
235235
args_.append(_get_data(k))
236236
elif isinstance(self.extra_keys, dict):
237237
for k, v in self.extra_keys.items():
238-
kwargs_[k] = _get_data(v)
238+
kwargs_.update({k: _get_data(v)})
239239

240240
return cast(torch.Tensor, image), cast(torch.Tensor, label), tuple(args_), kwargs_
241241

0 commit comments

Comments
 (0)