Fix PyTorch hooks compatibility
Added
- Add
call_mode
. - Add
warm_up
.
Changed
- Container implementations to use
__call__
with alternating call_modes. This change was necessary to propperly trigger the torch hooks needed inptflops
.
Fixed
ptflops
compatibility.