From dev-return-4620-archive-asf-public=cust-asf.ponee.io@singa.apache.org Tue Mar 24 05:12:14 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 DD91418064F for ; Tue, 24 Mar 2020 06:12:13 +0100 (CET) Received: (qmail 57233 invoked by uid 500); 24 Mar 2020 05:12:13 -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 57223 invoked by uid 99); 24 Mar 2020 05:12:13 -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, 24 Mar 2020 05:12:13 +0000 From: GitBox To: dev@singa.apache.org Subject: [GitHub] [singa] joddiy opened a new issue #633: Cannot do mul for int tensors Message-ID: Date: Tue, 24 Mar 2020 05:12:13 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit joddiy opened a new issue #633: Cannot do mul for int tensors URL: https://github.com/apache/singa/issues/633 Hi, @dcslin , we cannot do the mul operator for int tensors: The error is: > F0324 05:04:22.542809 14739 tensor.cc:932] Unknown combination of data type kInt and language kCuda please use this test case: ```python3 x1 = np.array([1], dtype=np.int32) x2 = np.array([256], dtype=np.int32) x1 = tensor.from_numpy(x1) x1.to_device(gpu_dev) x2 = tensor.from_numpy(x2) x2.to_device(gpu_dev) y = autograd.Mul()(x1, x2) print(tensor.to_numpy(y[0])) ``` ---------------------------------------------------------------- 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 With regards, Apache Git Services