From 776146feb740de1acfaa8b2b4d2a5381a3dc4383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Tue, 28 Sep 2021 01:27:26 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/=E4=B8=93=E9=A2=98?= =?UTF-8?q?=E6=A1=88=E4=BE=8B/=E5=8A=9F=E8=83=BD=E6=89=93=E9=80=9A/grid=5F?= =?UTF-8?q?sample=E8=87=AA=E5=AE=9A=E4=B9=89onnx=E7=AE=97=E5=AD=90.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" index 10b6539..0361659 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" @@ -1,7 +1,8 @@ [PointRend](https://gitee.com/ascend/modelzoo/pulls/4611) +补丁说明: 1.onnx不支持grid_sample算子,参考mmcv的自定义算子grid_sample的测试等价代码bilinear_grid_sample进行替换 2.去除部分动态shape的where算子 -3.expand输入类型转换 +3.规避expand暂不支持int64进行的输入类型转换 4.div输入类型转换 5.padv3算子问题影响网络精度,通过修改代码进行了规避 6.本模型是基于detectron2框架的模型 \ No newline at end of file -- Gitee From 9427b15537ec644534435fa9043b12e3e7b9a93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Tue, 28 Sep 2021 01:28:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/=E4=B8=93=E9=A2=98?= =?UTF-8?q?=E6=A1=88=E4=BE=8B/=E5=8A=9F=E8=83=BD=E6=89=93=E9=80=9A/grid=5F?= =?UTF-8?q?sample=E8=87=AA=E5=AE=9A=E4=B9=89onnx=E7=AE=97=E5=AD=90.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...45\256\232\344\271\211onnx\347\256\227\345\255\220.md" | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" index 0361659..965d0b1 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/\344\270\223\351\242\230\346\241\210\344\276\213/\345\212\237\350\203\275\346\211\223\351\200\232/grid_sample\350\207\252\345\256\232\344\271\211onnx\347\256\227\345\255\220.md" @@ -1,8 +1,8 @@ [PointRend](https://gitee.com/ascend/modelzoo/pulls/4611) 补丁说明: 1.onnx不支持grid_sample算子,参考mmcv的自定义算子grid_sample的测试等价代码bilinear_grid_sample进行替换 -2.去除部分动态shape的where算子 -3.规避expand暂不支持int64进行的输入类型转换 -4.div输入类型转换 -5.padv3算子问题影响网络精度,通过修改代码进行了规避 +2.去除部分om暂不支持的动态shape的where算子 +3.规避om expand算子暂不支持int64进行的输入类型转换 +4.规避om div算子暂不支持int64进行的输入类型转换 +5.om padv3算子问题影响网络精度,通过修改代码进行了规避 6.本模型是基于detectron2框架的模型 \ No newline at end of file -- Gitee