You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(autojac): Fix non-deterministic column order (#283)
* Replace the ordered_set function and the _OrderedSet TypeVar in _utils.py by the OrderedSet class in ordered_set.py
* Add difference_update and add to OrderedSet
* Change _get_descendant_accumulate_grads and _get_leaf_tensors to work with OrderedSets
* Make backward and mtl_backward use OrderedSet instead of set or list for tensors to differentiate. This should make the _AggregateMatrices transform use a deterministic key_order, which should fix the column order before aggregation.
* Add changelog entry
Note: we did not verify that there was some non-determinism in the column ordering, and we think that with mtl_backward it could only happen when the parameters were not specified by the user. Still, this should make things much safer.
0 commit comments