singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-singa] chrishkchris commented on a change in pull request #468: Distributted module
Date Fri, 19 Jul 2019 08:14:43 GMT
chrishkchris commented on a change in pull request #468: Distributted module

 File path: src/api/config.i
 @@ -0,0 +1,33 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+// Pass in cmake configurations to swig
+#define USE_CUDA 1
+#define USE_CUDNN 1
+#define USE_OPENCL 0
+#define USE_PYTHON 1
+#define USE_MKLDNN 1
+#define USE_JAVA 0
+#define CUDNN_VERSION 7401
+// SINGA version
 Review comment:
   In our server (at ncrg), I created a new anaconda python 3.6 enivorment and install singa
2.0 using "conda install -c nusdbsystem -c conda-forge singa=2.0.0=cudnn7.3.1_cuda10.0_py36"
   It passed the test: python -c "from singa import tensor"
   Also, it passed the old optimizer example: incubator-singa/example/cifar10/ can
run and train successfully.
   However, the incubator-singa/examples/autograd/ cannot run, while the output is:
   Start intialization............
| 0/200 [00:00<?, ?it/s]
   Traceback (most recent call last):
     File "examples/autograd/", line 247, in <module>
       x = model(tx)
     File "examples/autograd/", line 155, in __call__
       x = self.conv1(x)
     File "/home/dcsysh/anaconda3/envs/singa2/lib/python3.6/site-packages/singa/",
line 939, in __call__
       self.device_check(x, self.W, self.b)
     File "/home/dcsysh/anaconda3/envs/singa2/lib/python3.6/site-packages/singa/",
line 656, in device_check
       if != x_dev_id:
   AttributeError: 'NoneType' object has no attribute 'device'

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:

With regards,
Apache Git Services

View raw message