-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Has not supported infering output shape from input shape for module/function: prim::TupleUnpack
, .prim::TupleUnpack.152
#3645
Comments
Thank you @aa12356jm , |
can you explain the reason of the problem to me? i speedup my model, my model consists of three parts: backbone(mobilenetv2)+fpn+head,it is ok if i speedup my backbone. it gives the above error if i speedup backbone+fpn, |
Hello @aa12356jm , |
@aa12356jm Hi, Basically, I guess it is caused by the function whose return value is complicated(such as tuple or list of tensors). Could you please show us your code snippet of the model definition to reproduce this problem and fix it~ Thanks. |
yes, the return value of my model is tuple/list,this is the code: backbone`
` FPN`
` |
@zheng-ningxin @J-shang is there any progress? |
@aa12356jm Yes. |
@zheng-ningxin i got it ,thanks , looking forward to your PR |
code for debug `
` |
Have you solved this problem? My model structure is very similar to yours. I changed the branch code named speedup_v2, but there are still problems with inference |
@johnnylili Could you please show the code snippet of the model definition? so that I can run it with speedup_v2 and check what's wrong. Thanks. |
@zheng-ningxin 你好,我这边可以加你个微信吗?方便我把代码发给您,与您沟通。 |
@johnnylili Ok, please send me your Wechat id through the email Ningxin.Zheng@microsoft.com. |
@johnnylili Hi, I have supported the model you send to me, please pull the latest version of speedup_v2 and try again, if you meet some problems, please feel free to contact me through the email or Wechat, thanks~ |
"RuntimeError: Has not supported infering output shape from input shape for module/function: multiple outputs of a neural network still arise the error above. thanks for share the solution. I had tried the newest nni sourcecode. class SubNet(nn.Module):
class MultiOutputsNet(nn.Module):
|
@JohnsenJiang have you tried on this branch https://github.com/microsoft/nni/pull/3462? Please let me know if you still fail on this branch. |
The net i mentioned above works on your speedup_v2 branch. Thanks for your help! My fault to misunderstand your reply above my issue. @zheng-ningxin |
Describe the issue:
Environment:
The text was updated successfully, but these errors were encountered: