torch.fx.experimental.unification.unification_tools.assoc
- torch.fx.experimental.unification.unification_tools.assoc(d, key, value, factory=<class 'dict'>)
Return a new dict with new key value pair
New dict has d[key] set to value. Does not modify the initial dictionary.
>>> assoc