Skip to content

Commit 3db9fb6

Browse files
authored
fix: correct dictionary unpacking in recursively_apply function (#3766)
1 parent fe795fd commit 3db9fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accelerate/utils/operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def recursively_apply(func, data, *args, test_type=is_torch_tensor, error_on_oth
116116
)
117117
elif isinstance(data, Mapping):
118118
return type(data)(
119-
{
119+
**{
120120
k: recursively_apply(
121121
func, v, *args, test_type=test_type, error_on_other_type=error_on_other_type, **kwargs
122122
)

0 commit comments

Comments
 (0)