torch.fx.experimental.unification.unification_tools.merge
-
torch.fx.experimental.unification.unification_tools.merge(*dicts, **kwargs)[исходный код] -
Объединяет коллекцию словарей
>>> merge({1: "one"}, {2: "two"}) {1: 'one', 2: 'two'}Позднее расположенные словари имеют приоритет
>>> merge({1: 2, 3: 4}, {3: 3, 4: 4}) {1: 2, 3: 3, 4: 4}См. также
merge_with
- Тип возвращаемого значения:
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.fx.experimental.unification.unification_tools.merge.html