Lyken17 / pytorch-OpCounter

Count the MACs / FLOPs of your PyTorch model.
MIT License
4.85k stars 528 forks source link

multiple inputs #206

Open vdsw opened 1 year ago

vdsw commented 1 year ago

Thank you so much for sharing the code. My model have two inputs, now, how does thop handle ?

HaoKang-Timmy commented 1 year ago

You could use onnx or jit to profile. Or you may want to try to use this https://github.com/HaoKang-Timmy/torchanalyse