You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/08/15 10:11:46 UTC
[jira] [Commented] (SINGA-55) Refactor main.cc and singa.h
[ https://issues.apache.org/jira/browse/SINGA-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14698175#comment-14698175 ]
ASF subversion and git services commented on SINGA-55:
------------------------------------------------------
Commit 2498ff135fb50571010acdabb347db758c01535f in incubator-singa's branch refs/heads/master from wang sheng
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=2498ff1 ]
SINGA-55 Refactor main.cc and singa.h
add driver.cc in make configuration
> Refactor main.cc and singa.h
> ----------------------------
>
> Key: SINGA-55
> URL: https://issues.apache.org/jira/browse/SINGA-55
> Project: Singa
> Issue Type: Improvement
> Reporter: wangwei
>
> This ticket is a continuation of SINGA-36.
> A Driver class will be provided, which includes the following functions:
> * Init() to init glogs, gflags (may remove the dependency on flags later); register built-in layers, updaters, etc.; setup folders; init MPI if MPI is used for message passing.
> * RegisterLayer/Updater/Worker/Param, for registering user defined layers, updaters, etc.
> * Submit() for submitting the job configuration.
> The user's main program would then look like :
> {code}
> #include "singa.h"
> int main(int argc, char** argv) {
> singa::Driver driver;
> dirver.Init(argc, argv);
> dirver.RegisterLayer<SubLayerClass>(sublayerID);
> dirver.RegisterUpdater<SubUpdaterClass>(subUpdaterID);
> ...
> // prepare job conf
> driver.Submit(..);
> return 0;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)