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 backward compatibility for rec metric fuse states issue (#2894)
Summary:
Pull Request resolved: #2894
`Metric` seems to be wrapped by packages. In some tests, `rec_metric` may import the old version `Metric` that doesn't have `fuse_tensor_states` attribute. This caused breakage: https://www.internalfb.com/diff/D72010614?dst_version_fbid=1727492137979220&transaction_fbid=1212653170466199 in D72010614.
So this diff fixes that by examining the signature of `Metric` and only input `fuse_tensor_states` when it's there.
Reviewed By: iamzainhuda
Differential Revision: D73217574
fbshipit-source-id: 253fc6ac304baaa57ab8f6269b7b4f5845515126
0 commit comments