torch.fx.experimental.unification.unification_tools.merge_with
- torch.fx.experimental.unification.unification_tools.merge_with(func, *dicts, **kwargs)
Merge dictionaries and apply function to combined values
A key may occur in more than one dict, and all values mapped from the key will be passed to the function as a list, such as func([val1, val2, …]).
>>>