Open Kocha opened 4 years ago
This is because ScriptModules
(what fasterrcnn_resnet50_fpn
is represented as here) doesn't currently support forward hooks, and torchsummary currently assumes that the model passed in inherits from nn.Module
, so then the method register_forward_hook
is supported. Hope that helps!
@Naireen Thank you for Reply.
I tried debugging but didn't know where the problem was.
Do you know which layer of fasterrcnn_resnet50_fpn
is the problem?
Try executed this code, but print RuntimeError message. Is there any solution?