Skip to content

Fix PyTorch hooks compatibility

Compare
Choose a tag to compare
@LukasHedegaard LukasHedegaard released this 06 Sep 12:22
· 305 commits to main since this release
8b0ea68

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 in ptflops.

Fixed

  • ptflops compatibility.