singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] nudles commented on a change in pull request #416: singa-onnx
Date Sun, 10 Mar 2019 15:07:36 GMT
nudles commented on a change in pull request #416: singa-onnx
URL: https://github.com/apache/incubator-singa/pull/416#discussion_r264043355
 
 

 ##########
 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:
   input tensor should have a name.

----------------------------------------------------------------
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

Mime
View raw message