Skip to content
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

Pytorch's ConvTranspose2d supported in DPU but accuracy degrades significantly. Is it expected? #95

Open
abdulazizm opened this issue Apr 25, 2022 · 0 comments

Comments

@abdulazizm
Copy link

Faced issue during compilation using Apache TVM flow. Below code helps to have conv2d_transpose onto mod['tvmgen_default_vitis_ai_main_0'] but accuracy degrades significantly (maybe due to unexpected weight transpose happens during desired layout transformation). It works great if we don't have conv2d_transpose in desired layout dict or force to have 'NCHW' layout

desired_layouts = {
                  'nn.conv2d': ['NHWC', 'default'], 
                  'image.resize2d': ['NHWC'], 
                  'nn.max_pool2d':['NHWC'], 
                  'nn.conv2d_transpose': ['NCHW','default'],
                  }

Tried 'nn.conv2d_transpose': ['NCHW','OIHW'] & 'nn.conv2d_transpose': ['NCHW','HWIO'] but no luck. And not sure if it is a known bug

@jornt-xilinx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant