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
In the Flops profiler, the list of functionals restored in _reload_functionals is missing some functions wrapped in _patch_functionals. This leads to wrong FLOPs counts when using consecutive calls to profiler.start_profile (and possibly some minor overhead when using these functional later on).
To reproduce
Example comparing torch.nn.LayerNorm (not properly restored) and torch.nn.Linear (properly restored): Repeated calls with the exact same inputs should give the same result.
Expected behavior _reload_functionals should restore all functionals wrapped in _patch_functionals. It seems that (layer, group, instance)norm are missing, but I haven't checked the list carefully.
The text was updated successfully, but these errors were encountered:
In the Flops profiler, the list of functionals restored in
_reload_functionals
is missing some functions wrapped in_patch_functionals
. This leads to wrong FLOPs counts when using consecutive calls toprofiler.start_profile
(and possibly some minor overhead when using these functional later on).To reproduce
Example comparing
torch.nn.LayerNorm
(not properly restored) andtorch.nn.Linear
(properly restored): Repeated calls with the exact same inputs should give the same result.giving the output:
Expected behavior
_reload_functionals
should restore all functionals wrapped in_patch_functionals
. It seems that (layer, group, instance)norm are missing, but I haven't checked the list carefully.The text was updated successfully, but these errors were encountered: