torch.fx.experimental.unification.utils.freeze
-
torch.fx.experimental.unification.utils.freeze(d)[исходный код] -
Преобразует контейнер в хешируемую форму >>> freeze(1) 1 >>> freeze([1, 2]) (1, 2) >>> freeze({1: 2}) # doctest: +SKIP frozenset([(1, 2)])
- Тип возвращаемого значения:
© 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.utils.freeze.html