This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Commit f8633f6
Fix cleaning forward hooks in flop counter
Summary:
Pull Request resolved: #498
Removing `forward_pre_hooks` was a no-op (i.e. empty list of hooks).
Fix similar to:
pytorch/pytorch#49739
Reviewed By: frabu6
Differential Revision: D43770684
fbshipit-source-id: 47e8a87bc61e352760115616fe480d616fb9e1e61 parent 8cb5023 commit f8633f6
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments