Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions torchtnt/utils/flops.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ class FlopTensorDispatchMode(TorchDispatchMode):
Flop count implementation based on
https://dev-discuss.pytorch.org/t/the-ideal-pytorch-flop-counter-with-torch-dispatch/505

Note that not all operators are supported.
Unsupported operations will be logged as debug messages but will not contribute
to the FLOP count.

Examples::

>>> import copy
Expand Down