Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 02464200B88 for ; Wed, 17 Aug 2016 20:02:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F21AE160AB5; Wed, 17 Aug 2016 18:02:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3C97B160ABB for ; Wed, 17 Aug 2016 20:02:28 +0200 (CEST) Received: (qmail 74872 invoked by uid 500); 17 Aug 2016 18:02:27 -0000 Mailing-List: contact commits-help@singa.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.incubator.apache.org Delivered-To: mailing list commits@singa.incubator.apache.org Received: (qmail 74835 invoked by uid 99); 17 Aug 2016 18:02:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 18:02:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 11C12C03CB for ; Wed, 17 Aug 2016 18:02:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LblVWZknu69t for ; Wed, 17 Aug 2016 18:02:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id F019D60DD3 for ; Wed, 17 Aug 2016 18:02:23 +0000 (UTC) Received: (qmail 74244 invoked by uid 99); 17 Aug 2016 18:02:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 18:02:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A14E7E055D; Wed, 17 Aug 2016 18:02:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wangwei@apache.org To: commits@singa.incubator.apache.org Date: Wed, 17 Aug 2016 18:02:37 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [16/51] [abbrv] incubator-singa git commit: Merge PR #240 for training RBM againt MNIST archived-at: Wed, 17 Aug 2016 18:02:29 -0000 Merge PR #240 for training RBM againt MNIST Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/1db27841 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/1db27841 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/1db27841 Branch: refs/heads/master Commit: 1db278417bd5e569ef69a2aa83af26ee6f609701 Parents: dffae6b 5b332a4 Author: Wei Wang Authored: Sun Aug 14 17:10:37 2016 +0800 Committer: Wei Wang Committed: Sun Aug 14 17:10:37 2016 +0800 ---------------------------------------------------------------------- examples/mnist/README.md | 18 +++++ examples/mnist/train.py | 134 ++++++++++++++++++++++++++++++++ include/singa/core/tensor.h | 19 +++++ include/singa/model/loss.h | 1 - src/core/tensor/math_kernel.cu | 53 ++++++++++++- src/core/tensor/math_kernel.h | 14 +++- src/core/tensor/tensor.cc | 15 +++- src/core/tensor/tensor_math.h | 24 ++++++ src/core/tensor/tensor_math_cpp.h | 42 ++++++++++ src/core/tensor/tensor_math_cuda.h | 40 +++++++++- src/python/singa/optimizer.py | 7 +- src/python/singa/tensor.py | 20 ++++- src/python/swig/core_tensor.i | 10 +++ 13 files changed, 378 insertions(+), 19 deletions(-) ----------------------------------------------------------------------