-
Notifications
You must be signed in to change notification settings - Fork 359
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
[fix]: fix bug in aten::to, when network only have aten::to layer wil… #1108
Conversation
…l change input name Signed-off-by: inocsin <vcheungyi@163.com>
@narendasan please review this change |
This seems fine to me but I think it should be part of more comprehensive changes to catch this class of error. cc: @bowang007 |
looks like this issue is related to this one #982. Both these issues are triggered by changing the names of ITensor. |
what's the error message that you have now? @inocsin |
Error message is here, because the input with name input_0 is changed to output value named 4, so the binding will fail.
|
same error with #982. |
@bowang007 Delete this line will also solve the problem https://github.com/pytorch/TensorRT/blob/master/core/conversion/conversionctx/ConversionCtx.cpp#L133 |
yes, we discussed this WAR in the channel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: inocsin <vcheungyi@163.com>
@dheerajperi reverted change |
…l change input name
Signed-off-by: inocsin vcheungyi@163.com
Description
When (1) network only have aten::to layer or (2) the output of aten::to is same as input and the input of aten::to is network input, will change the input tensor's name, which will case an error.
Fixes # (issue)
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: