From dev-return-2584-archive-asf-public=cust-asf.ponee.io@singa.incubator.apache.org Mon Mar 11 03:05:51 2019 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4EDA3180672 for ; Mon, 11 Mar 2019 04:05:51 +0100 (CET) Received: (qmail 1573 invoked by uid 500); 11 Mar 2019 03:05:49 -0000 Mailing-List: contact dev-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 dev@singa.incubator.apache.org Received: (qmail 1558 invoked by uid 99); 11 Mar 2019 03:05:49 -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; Mon, 11 Mar 2019 03:05:49 +0000 From: GitBox To: dev@singa.apache.org Subject: [GitHub] [incubator-singa] ShichengChen commented on a change in pull request #416: singa-onnx Message-ID: <155227354914.2555.11884299983033656554.gitbox@gitbox.apache.org> Date: Mon, 11 Mar 2019 03:05:49 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ShichengChen commented on a change in pull request #416: singa-onnx URL: https://github.com/apache/incubator-singa/pull/416#discussion_r264080797 ########## File path: examples/onnx/cnnonnx2singa.py ########## @@ -105,19 +105,13 @@ def accuracy(pred, target): model = onnx.load('cnn.onnx') - rep = sonnx.BackendRep(model,dev) - #####backend run multiple times + rep = sonnx.prepare(model, dev) print('finish init') autograd.training = True # training process for epoch in range(1): inputs = tensor.Tensor(device=dev, data=x_train[0:100], stores_grad=False) Review comment: if input order here is the same as input order in to_onnx_model, default name system works ---------------------------------------------------------------- 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