From dev-return-5525-archive-asf-public=cust-asf.ponee.io@singa.apache.org Sat May 30 16:20:36 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 556CF180638 for ; Sat, 30 May 2020 18:20:36 +0200 (CEST) Received: (qmail 97502 invoked by uid 500); 30 May 2020 16:20:35 -0000 Mailing-List: contact dev-help@singa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.apache.org Delivered-To: mailing list dev@singa.apache.org Received: (qmail 97490 invoked by uid 99); 30 May 2020 16:20:35 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2020 16:20:35 +0000 From: =?utf-8?q?GitBox?= To: dev@singa.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bsinga=5D_Shashankwer_commented_on_issue_=23700=3A_?= =?utf-8?q?Expand_the_model_zoo_=28example_model_set=29?= Message-ID: <159085563545.10999.16602960388517323929.asfpy@gitbox.apache.org> Date: Sat, 30 May 2020 16:20:35 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: Shashankwer commented on issue #700: URL: https://github.com/apache/singa/issues/700#issuecomment-636353079 Hi, Shufflenetv2 for average pooling layer the conversion from onnx fails on below error: ValueError: Not implemented yet for count_include_pad or ceil_mode with below stack trace ValueError Traceback (most recent call last) in () ----> 1 sg_ir = sonnx.prepare(onnx_model, device=dev) 3 frames /usr/local/lib/python3.7/site-packages/singa/sonnx.py in prepare(cls, model, device, **kwargs) 2033 opset_version = 1 2034 weights, singa_ops = cls._onnx_model_to_singa_net( -> 2035 model, init_inputs, device, opset_version) 2036 return SingaRep(model, weights, singa_ops, 2037 cls.keep_initializers_as_inputs) /usr/local/lib/python3.7/site-packages/singa/sonnx.py in _onnx_model_to_singa_net(cls, model, init_inputs, device, opset_version) 1971 ] 1972 handle, forward = cls._onnx_node_to_singa_op( -> 1973 node, inputs, opset_version) 1974 # if it is Constant, we hanlde it as a weight 1975 # otherwise, we run it and add its output into map for being used by later operators /usr/local/lib/python3.7/site-packages/singa/sonnx.py in _onnx_node_to_singa_op(cls, onnx_node, inputs, opset_version) 1816 else: 1817 translator = cls._common_onnx_node_to_singa_op -> 1818 return translator(onnx_node, inputs, opset_version) 1819 1820 @classmethod /usr/local/lib/python3.7/site-packages/singa/sonnx.py in _create_max_avg_pool(cls, onnx_node, inputs, opset_version) 1635 if "count_include_pad" in onnx_node.attrs or "ceil_mode" in onnx_node.attrs: 1636 raise ValueError( -> 1637 "Not implemented yet for count_include_pad or ceil_mode") 1638 1639 # only support 2d ValueError: Not implemented yet for count_include_pad or ceil_mode. Kindly let us know the further steps to be taken Thanks and Regards, Shashank Nigam ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org