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
Avoid initializer name collision in _fuse_batchnorm.py (#2680)
Fixespytorch/pytorch#166797
The original naming collides when there are multiple matched patterns
sharing the same parent node. This PR changes the naming to depend on
their own Conv weight name, which should be non-duplicated identifier.
~~NOTE: I don't know if my understanding is correct. It seems x is an
input of the pattern, which x.name + "_bias" collides with `max_pool`
bias (see the pic in the original issue)? If we check the output model
after _fuse_batchnorm.py, the bias would be correct with a name `val_17`
(the name may be collided and given by NameAuthority?). However, when
the following rule _remove_optional_bias tries to fetch the bias, it
would see all zero for some reasons.~~
0 commit comments