From dev-return-5618-archive-asf-public=cust-asf.ponee.io@singa.apache.org Tue Jun 2 16:54:44 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 6C45818064C for ; Tue, 2 Jun 2020 18:54:44 +0200 (CEST) Received: (qmail 66855 invoked by uid 500); 2 Jun 2020 16:54:43 -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 66844 invoked by uid 99); 2 Jun 2020 16:54:43 -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; Tue, 02 Jun 2020 16:54:43 +0000 From: =?utf-8?q?GitBox?= To: dev@singa.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bsinga=5D_joddiy_commented_on_pull_request_=23697?= =?utf-8?q?=3A_New_Model_Layer_Operator_API?= Message-ID: <159111688352.10999.15593584109758681460.asfpy@gitbox.apache.org> Date: Tue, 02 Jun 2020 16:54:43 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: joddiy commented on pull request #697: URL: https://github.com/apache/singa/pull/697#issuecomment-637678950 @dcslin Hi, shicong, for some cases of Conv2d, there may be some issues, please use this code to test: ``` def _conv2d_helper(self, dev): # (out_channels, kernel_size) conv_0 = layer.Conv2d(1, 3) cpu_input_tensor = tensor.Tensor(shape=(1, 1, 5, 5), device=dev) cpu_input_tensor.gaussian(0.0, 1.0) y = conv_0(cpu_input_tensor) # PyTensor self.check_shape(y.shape, (1, 1, 5, 5)) def test_conv2d_cpu(self): self._conv2d_helper(cpu_dev) @unittest.skipIf(not singa_wrap.USE_CUDA, 'CUDA is not enabled') def test_conv2d_gpu(self): self._conv2d_helper(gpu_dev) ``` The error is : > F0602 16:52:21.098649 18959 tensor_math_cuda.h:805] Check failed: status == CURAND_STATUS_SUCCESS (105 vs. 0) CURAND_STATUS_LENGTH_NOT_MULTIPLE And the error takes place at this [line](https://github.com/dcslin/singa/blob/py-api/python/singa/layer.py#L479). ``` self.W.gaussian(0.0, std) ``` ---------------------------------------------------------------- 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