-
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
Bilinear mode in topi::nn::upsampling not working #1692
Comments
@KeDengMS
|
Yes NCHW layout, but I believe it exists in NHWC as well. The error is from a crash in dereferencing nullptr in here. The problem is that shape is a Mul node with two IntImm as input from the python API, and as_const_int returns nullptr for non-const node. |
@KeDengMS a bit confused. Is the issue about "Layout Not Supported" or "Crash " ? Can you share complete log or the sample code? |
I think it's nothing about Layout, but more for BILINEAR mode. The repro is to change the python test to use BILINEAR mode: |
But the log says NotImplementedError('Layout not supported {} '.format(layout)). What is the "layout" parameter you passed in? It should be "NCHW" or "NHWC". |
The repro I show above is from git diff, not the log. The testcase tests both NCHW and NHWC |
@KeDengMS I can repro your crash. The fix is to add util.simplify to https://github.com/dmlc/tvm/blob/master/topi/python/topi/nn/upsampling.py#L34 I can send a PR to fix this and update the upsampling test. |
@srkreddy1238 I made a branch to fix this issue here. But some bilinear upsampling tests are failing. Can you have a look? |
Thanks for the fix! |
To repro, use following changes in test_topi_upsampling.py:
The text was updated successfully, but these errors were encountered: