-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
AttributeError during ConvertLayout to NHWC #6410
Comments
I think this is happening because the shape of data is accessed by |
If we agree this is a legitimate issue, I found two places that need fixing: |
Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
cc @anijain2305 |
Thanks @leandron for raising the issue. Your fixes look good to me. |
Just to mention, I checked PR #6419 and it completely fixes this issue here, so we can close it once that PR is merged. |
Thanks @leandron. This can be closed now. |
…WC (apache#6419) Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
…WC (apache#6419) Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
…WC (apache#6419) Fixes an issue described in apache#6410. In order to retrieve the shape a tensor `checked_type` should be used. Change-Id: I991d194d9cc15ee20464ff2e239fd05c035000c8
When using
tvm.relay.transform.ConvertLayout
(in the context of #6302), I'm getting some errors that are not really clear on how they are related to the convert process.It seems
ConvertLayout
it is looking forshape
(this check was introduced in #5284), when trying to find depthwise convolutions, but it doesn't seem to be the case thatshape
is there for some imported models, and might need some fixing.https://github.com/apache/incubator-tvm/blob/4b48d89c79a72f7799606e845bdb1ed938baa115/python/tvm/relay/op/nn/_nn.py#L158-L164
This is the error I see, when trying to run
ConvertLayout
on an ONNX model:To reproduce the issue, you can run the script below:
PS: It also happens if I get a NHWC TFlite model and try to force it into an NHWC convertion, but that is a negative test, that is why I didn't add it here.
cc @comaniac @jwfromm
The text was updated successfully, but these errors were encountered: