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 3384D200B8F for ; Fri, 30 Sep 2016 13:56:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 322A0160AD9; Fri, 30 Sep 2016 11:56:53 +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 7965D160AC4 for ; Fri, 30 Sep 2016 13:56:52 +0200 (CEST) Received: (qmail 39845 invoked by uid 500); 30 Sep 2016 11:56:51 -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 39836 invoked by uid 99); 30 Sep 2016 11:56:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 11:56:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3360D180646 for ; Fri, 30 Sep 2016 11:56:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 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=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id IYursV-Q4jr0 for ; Fri, 30 Sep 2016 11:56:50 +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 AD99C5FBCA for ; Fri, 30 Sep 2016 11:56:49 +0000 (UTC) Received: (qmail 39795 invoked by uid 99); 30 Sep 2016 11:56:48 -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; Fri, 30 Sep 2016 11:56:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ADDACE049D; Fri, 30 Sep 2016 11:56:48 +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: Fri, 30 Sep 2016 11:56:49 -0000 Message-Id: <8dab9a4c83254f3bab364da60b8748be@git.apache.org> In-Reply-To: <446d868a8c184dbcb1032f29af69bd32@git.apache.org> References: <446d868a8c184dbcb1032f29af69bd32@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] incubator-singa git commit: SINGA-252 Use the snapshot methods to dump and load models for pysinga archived-at: Fri, 30 Sep 2016 11:56:53 -0000 SINGA-252 Use the snapshot methods to dump and load models for pysinga Turn on _packed_ option of tenser protobuf message to make them more compact in size. Now, the vgg-16 model reported in SINGA-248 is 528 MB. Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/7c12f402 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/7c12f402 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/7c12f402 Branch: refs/heads/master Commit: 7c12f402ad5279cf59865df755591be397c283a9 Parents: 538bdac Author: WANG Ji Authored: Tue Sep 27 16:49:46 2016 +0800 Committer: WANG Ji Committed: Tue Sep 27 16:49:46 2016 +0800 ---------------------------------------------------------------------- src/proto/core.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/7c12f402/src/proto/core.proto ---------------------------------------------------------------------- diff --git a/src/proto/core.proto b/src/proto/core.proto index dc5ed34..d455a9e 100644 --- a/src/proto/core.proto +++ b/src/proto/core.proto @@ -71,8 +71,8 @@ message TensorProto { repeated uint32 shape = 1; optional DataType data_type = 2; optional bool transpose = 3; - repeated float float_data = 4; - repeated double double_data = 5; - repeated int32 int_data = 6; + repeated float float_data = 4 [packed = true]; + repeated double double_data = 5 [packed = true]; + repeated int32 int_data = 6 [packed = true]; repeated bytes bytes_data = 7; }