-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Model FLOPs/Parameters Counter Example #3344
Comments
@colorjam please help take this issue, thanks |
@listener17 Hi, could you please provide more details about your running code? What model did you define to feed into |
Hi @colorjam: Thanks. First, I think there is a bug in the documentation.
It should be
Yesterday I updated to PyTorch 1.7.1 and upgraded NNI and started playing with my old code.
So, the problem could be with my model or it could be something related to latest PyTorch. |
I tried my model with the pytorch-OpCounter: It works (like before!. Meaning, now, pytorch-OpCounter works:
NNI doesn't work: I get this error with NNI:
For your info, my model has 1d convolution, 1d transposed convolution, and LSTMs. I have not yet tested on Linux GPU server, only testing on my Windows laptop. My environment is:
|
Thanks for the valuable feedback! Currently, we not integrate LSTM layers into our counter. We will fix it in 2.1 version. |
Hi @colorjam: You may for example simply try running generator.py Please add on top: and, please add at the last line: You will get the same error I reported. It's simply a model with 1d conv and 1d transposed conv with skip connection (like in an U-Net). Thanks for looking into it. |
The example given here:
https://nni.readthedocs.io/en/stable/Compression/CompressionUtils.html#model-flops-parameters-counter
Is not working on both Windows and Linux.
The text was updated successfully, but these errors were encountered: