singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SINGA-55) Refactor main.cc and singa.h
Date Sat, 15 Aug 2015 08:11:46 GMT

    [ https://issues.apache.org/jira/browse/SINGA-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14698172#comment-14698172
] 

ASF subversion and git services commented on SINGA-55:
------------------------------------------------------

Commit 3ec12b92636ec893be845b08580ec54e302d6689 in incubator-singa's branch refs/heads/master
from Wei Wang
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=3ec12b9 ]

SINGA-55 Refactor main.cc and singa.h

A Driver class is implemented for initializing SINGA including parsing job ID,
and registering built-in subclasses of Layer, Updater, Worker and Param.
May use it to init MPI if using MPI as the message passing lib.

The main.cc file is updated to provide an example main func.

Update the GaussianSqrtFanin init method for Param (ref SINGA-58).


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

Mime
View raw message