torchstat icon indicating copy to clipboard operation
torchstat copied to clipboard

Bug Report: assert module.__class__ in self._origin_call

Open markson14 opened this issue 4 years ago • 0 comments

When I run the stat() code, it gives "assert module.class in self._origin_call". I print out the entire log and I find out this module has 3 children and still being assigned to wrap_call image Then I went through the code and I tried to print where each module being assigned to wrap_call function from Module._call_impl. image The following image is the print log. It seems the log cannot catch the place where this module has been assiged to wrap_call image Thus I modified the code to this and this problem can be temporarily solved image Can you help me to find out the problem? Thank you.

markson14 avatar Feb 20 '21 08:02 markson14