Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError #6

Open
JasonYangCode opened this issue May 22, 2023 · 1 comment
Open

AssertionError #6

JasonYangCode opened this issue May 22, 2023 · 1 comment

Comments

@JasonYangCode
Copy link

JasonYangCode commented May 22, 2023

File "C:\ProgramData\Anaconda3\lib\site-packages\torchstat\statistics.py", line 71, in stat
ms.show_report()
File "C:\ProgramData\Anaconda3\lib\site-packages\torchstat\statistics.py", line 64, in show_report
collected_nodes = self._analyze_model()
File "C:\ProgramData\Anaconda3\lib\site-packages\torchstat\statistics.py", line 57, in _analyze_model
model_hook = ModelHook(self._model, self._input_size)
File "C:\ProgramData\Anaconda3\lib\site-packages\torchstat\model_hook.py", line 24, in init
self._model(x)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 217, in forward
input = module(input)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 217, in forward
input = module(input)
File "C:\ProgramData\Anaconda3\lib\site-packages\torchstat\model_hook.py", line 44, in wrap_call
assert module.class in self._origin_call
AssertionError

@JasonYangCode
Copy link
Author

JasonYangCode commented May 22, 2023

I only made the following modifications to my source code:

from rbn import RepresentativeBatchNorm2d
... ...
# nn.BatchNorm2d(oup),
RepresentativeBatchNorm2d(oup),
... ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant