{"action":"created","issue":{"url":"https://api.github.com/repos/microsoft/onnxruntime/issues/2518","repository_url":"https://api.github.com/repos/microsoft/onnxruntime","labels_url":"https://api.github.com/repos/microsoft/onnxruntime/issues/2518/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/onnxruntime/issues/2518/comments","events_url":"https://api.github.com/repos/microsoft/onnxruntime/issues/2518/events","html_url":"https://github.com/microsoft/onnxruntime/issues/2518","id":531569163,"node_id":"MDU6SXNzdWU1MzE1NjkxNjM=","number":2518,"title":"Unexpected Shape with ConvTranspose with Dilation !=1","user":{"login":"lara-hdr","id":11823865,"node_id":"MDQ6VXNlcjExODIzODY1","avatar_url":"https://avatars0.githubusercontent.com/u/11823865?v=4","gravatar_id":"","url":"https://api.github.com/users/lara-hdr","html_url":"https://github.com/lara-hdr","followers_url":"https://api.github.com/users/lara-hdr/followers","following_url":"https://api.github.com/users/lara-hdr/following{/other_user}","gists_url":"https://api.github.com/users/lara-hdr/gists{/gist_id}","starred_url":"https://api.github.com/users/lara-hdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lara-hdr/subscriptions","organizations_url":"https://api.github.com/users/lara-hdr/orgs","repos_url":"https://api.github.com/users/lara-hdr/repos","events_url":"https://api.github.com/users/lara-hdr/events{/privacy}","received_events_url":"https://api.github.com/users/lara-hdr/received_events","type":"User","site_admin":false},"labels":[{"id":1122493979,"node_id":"MDU6TGFiZWwxMTIyNDkzOTc5","url":"https://api.github.com/repos/microsoft/onnxruntime/labels/bug","name":"bug","color":"d73a4a","default":true,"description":"Something isn't working, need help"}],"state":"open","locked":false,"assignee":{"login":"hariharans29","id":9969784,"node_id":"MDQ6VXNlcjk5Njk3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/9969784?v=4","gravatar_id":"","url":"https://api.github.com/users/hariharans29","html_url":"https://github.com/hariharans29","followers_url":"https://api.github.com/users/hariharans29/followers","following_url":"https://api.github.com/users/hariharans29/following{/other_user}","gists_url":"https://api.github.com/users/hariharans29/gists{/gist_id}","starred_url":"https://api.github.com/users/hariharans29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariharans29/subscriptions","organizations_url":"https://api.github.com/users/hariharans29/orgs","repos_url":"https://api.github.com/users/hariharans29/repos","events_url":"https://api.github.com/users/hariharans29/events{/privacy}","received_events_url":"https://api.github.com/users/hariharans29/received_events","type":"User","site_admin":false},"assignees":[{"login":"hariharans29","id":9969784,"node_id":"MDQ6VXNlcjk5Njk3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/9969784?v=4","gravatar_id":"","url":"https://api.github.com/users/hariharans29","html_url":"https://github.com/hariharans29","followers_url":"https://api.github.com/users/hariharans29/followers","following_url":"https://api.github.com/users/hariharans29/following{/other_user}","gists_url":"https://api.github.com/users/hariharans29/gists{/gist_id}","starred_url":"https://api.github.com/users/hariharans29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariharans29/subscriptions","organizations_url":"https://api.github.com/users/hariharans29/orgs","repos_url":"https://api.github.com/users/hariharans29/repos","events_url":"https://api.github.com/users/hariharans29/events{/privacy}","received_events_url":"https://api.github.com/users/hariharans29/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2019-12-02T22:05:19Z","updated_at":"2019-12-17T21:31:19Z","closed_at":null,"author_association":"MEMBER","body":"**Describe the bug**\r\nConvTranspose has unexpected output shape when dilation !=1.\r\n\r\nIn the documentation:\r\noutput_shape[i] = stride[i] * (input_size[i] - 1) + output_padding[i] + ((kernel_shape[i] - 1) * dilations[i] + 1) - pads[start_i] - pads[end_i]\r\n\r\nWith :\r\ninput_size = (1, 1, 50, 50)\r\ndilations = (3,1)\r\ngroup = 1\r\nkernel_shape = (3, 5)\r\npads = (4, 2, 4, 2)\r\nstrides = (2, 1)\r\noutput_padding = (0, 0)\r\n\r\nThe output shape is : (1, 3, 95, 50)\r\nBut from the above formula, with i = 0 : \r\noutput_shape = 2 * (50 - 1) + 0 + ((3 - 1) * 3 + 1) - 4 - 4 = 97 and not 95.\r\n\r\nSo the expected output shape is : (1, 3, 97, 50)\r\n\r\nI attached a repro to this issue.\r\n\r\n**System information**\r\n- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):\r\n- ONNX Runtime installed from (source or binary): pip\r\n- ONNX Runtime version: ort-nightly 11/29\r\n- Python version: 3.7.1\r\n\r\n[convtranspose.zip](https://github.com/microsoft/onnxruntime/files/3913495/convtranspose.zip)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/microsoft/onnxruntime/issues/comments/566757897","html_url":"https://github.com/microsoft/onnxruntime/issues/2518#issuecomment-566757897","issue_url":"https://api.github.com/repos/microsoft/onnxruntime/issues/2518","id":566757897,"node_id":"MDEyOklzc3VlQ29tbWVudDU2Njc1Nzg5Nw==","user":{"login":"hariharans29","id":9969784,"node_id":"MDQ6VXNlcjk5Njk3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/9969784?v=4","gravatar_id":"","url":"https://api.github.com/users/hariharans29","html_url":"https://github.com/hariharans29","followers_url":"https://api.github.com/users/hariharans29/followers","following_url":"https://api.github.com/users/hariharans29/following{/other_user}","gists_url":"https://api.github.com/users/hariharans29/gists{/gist_id}","starred_url":"https://api.github.com/users/hariharans29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariharans29/subscriptions","organizations_url":"https://api.github.com/users/hariharans29/orgs","repos_url":"https://api.github.com/users/hariharans29/repos","events_url":"https://api.github.com/users/hariharans29/events{/privacy}","received_events_url":"https://api.github.com/users/hariharans29/received_events","type":"User","site_admin":false},"created_at":"2019-12-17T21:31:19Z","updated_at":"2019-12-17T21:31:19Z","author_association":"MEMBER","body":"It seems like there is a single node test  - `convtranspose_dilations` and ORT passes that. I think the problem might be non-default stride (>1)+ non-default dilations (>1). "}}
{"actor":{"display_login":"hariharans29"}}