You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2020/10/14 14:31:46 UTC

[singa] branch master updated: fix mlp module import error

This is an automated email from the ASF dual-hosted git repository.

wangwei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/singa.git


The following commit(s) were added to refs/heads/master by this push:
     new a3e88c9  fix mlp module import error
     new be6a8f4  Merge pull request #809 from googol-lab/master
a3e88c9 is described below

commit a3e88c95cda8e4aca3a8ad6604ef1c09e69676c0
Author: Json Lee <ji...@gmail.com>
AuthorDate: Wed Oct 14 19:50:46 2020 +0800

    fix mlp module import error
---
 examples/cnn/train_cnn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/cnn/train_cnn.py b/examples/cnn/train_cnn.py
index 4c74b99..e4fd962 100644
--- a/examples/cnn/train_cnn.py
+++ b/examples/cnn/train_cnn.py
@@ -144,8 +144,8 @@ def run(global_rank,
             os.path.abspath(inspect.getfile(inspect.currentframe())))
         parent = os.path.dirname(current)
         sys.path.insert(0, parent)
-        from mlp import module
-        model = module.create_model(data_size=data_size,
+        from mlp import model
+        model = model.create_model(data_size=data_size,
                                     num_classes=num_classes)
 
     # For distributed training, sequential gives better performance