Added: websites/staging/singa/trunk/content/v0.3.0/zh/neural-net.html
==============================================================================
--- websites/staging/singa/trunk/content/v0.3.0/zh/neural-net.html (added)
+++ websites/staging/singa/trunk/content/v0.3.0/zh/neural-net.html Wed Apr 20 
05:12:03 2016
@@ -0,0 +1,573 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-04-20 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160420" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; Neural Net</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script 
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
 type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: 
[['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa";>
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 
10000;"
+        
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png";
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn 
btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache 
SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  
title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  
title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  
title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" 
data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  
title="v0.3.0">v0.3.0</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/index.html"  
title="English">English</a>
+</li>
+                                  <li>      <a href="../../docs/zh/index.html" 
 title="中文">中文</a>
+</li>
+                                  <li>      <a href="../../docs/jp/index.html" 
 title="日本語">日本語</a>
+</li>
+                                  <li>      <a href="../../docs/kr/index.html" 
 title="한국어">한국어</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.2.0/index.html"  
title="v0.2.0">v0.2.0</a>
+</li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  
title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  
title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a 
href="../../develop/how-contribute.html"  title="How to Contribute">How to 
Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a 
href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a 
href="../../develop/contribute-docs.html"  
title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a 
href="../../community/source-repository.html"  title="Source Repository">Source 
Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  
title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  
title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  
title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External 
Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/";  
title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/";  title="NUS Site">NUS 
Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" 
id="bannerLeft" title="Apache SINGA">
+                                                                               
                 <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                               
                 <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">Neural Net</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" 
title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick 
Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                               
                                                       
+      <li>
+  
+                          <a href="../../docs/index.html" title="v0.3.0">
+          <span class="icon-chevron-right"></span>
+        v0.3.0</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.2.0/index.html" title="v0.2.0">
+          <span class="none"></span>
+        v0.2.0</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" 
title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                               
     
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" 
title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" 
title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" 
title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" 
title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" 
title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/"; 
class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/"; class="externalLink" 
title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                               
                                    <a href="http://incubator.apache.org"; 
title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" 
src="http://incubator.apache.org/images/egg-logo.png";    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>Neural Net</h1>
+<hr />
+<p><tt>NeuralNet</tt> in SINGA represents an instance of user&#x2019;s neural 
net model. As the neural net typically consists of a set of layers, 
<tt>NeuralNet</tt> comprises a set of unidirectionally connected <a 
href="layer.html">Layer</a>s. This page describes how to convert an 
user&#x2019;s neural net into the configuration of <tt>NeuralNet</tt>.</p>
+<p><img src="../images/model-category.png" align="center" width="200px" alt="" 
/> <span><b>Figure 1 - Categorization of popular deep learning 
models.</b></span></p>
+<div class="section">
+<h2><a name="Net_structure_configuration"></a>Net structure configuration</h2>
+<p>Users configure the <tt>NeuralNet</tt> by listing all layers of the neural 
net and specifying each layer&#x2019;s source layer names. Popular deep 
learning models can be categorized as Figure 1. The subsequent sections give 
details for each category.</p>
+<div class="section">
+<h3><a name="Feed-forward_models"></a>Feed-forward models</h3>
+
+<div align="left">
+<img src="../images/mlp-net.png" align="center" width="200px" alt="" />
+<span><b>Figure 2 - Net structure of a MLP model.</b></span>
+</div>
+<p>Feed-forward models, e.g., CNN and MLP, can easily get configured as their 
layer connections are undirected without circles. The configuration for the MLP 
model shown in Figure 1 is as follows,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">net {
+  layer {
+    name : 'data&quot;
+    type : kData
+  }
+  layer {
+    name : 'image&quot;
+    type : kImage
+    srclayer: 'data'
+  }
+  layer {
+    name : 'label&quot;
+    type : kLabel
+    srclayer: 'data'
+  }
+  layer {
+    name : 'hidden&quot;
+    type : kHidden
+    srclayer: 'image'
+  }
+  layer {
+    name : 'softmax&quot;
+    type : kSoftmaxLoss
+    srclayer: 'hidden'
+    srclayer: 'label'
+  }
+}
+</pre></div></div></div>
+<div class="section">
+<h3><a name="Energy_models"></a>Energy models</h3>
+<p><img src="../images/rbm-rnn.png" align="center" width="500px" alt="" /> 
<span><b>Figure 3 - Convert connections in RBM and RNN.</b></span></p>
+<p>For energy models including RBM, DBM, etc., their connections are 
undirected (i.e., Category B). To represent these models using 
<tt>NeuralNet</tt>, users can simply replace each connection with two directed 
connections, as shown in Figure 3a. In other words, for each pair of connected 
layers, their source layer field should include each other&#x2019;s name. The 
full <a href="rbm.html">RBM example</a> has detailed neural net configuration 
for a RBM model, which looks like</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">net {
+  layer {
+    name : &quot;vis&quot;
+    type : kVisLayer
+    param {
+      name : &quot;w1&quot;
+    }
+    srclayer: &quot;hid&quot;
+  }
+  layer {
+    name : &quot;hid&quot;
+    type : kHidLayer
+    param {
+      name : &quot;w2&quot;
+      share_from: &quot;w1&quot;
+    }
+    srclayer: &quot;vis&quot;
+  }
+}
+</pre></div></div></div>
+<div class="section">
+<h3><a name="RNN_models"></a>RNN models</h3>
+<p>For recurrent neural networks (RNN), users can remove the recurrent 
connections by unrolling the recurrent layer. For example, in Figure 3b, the 
original layer is unrolled into a new layer with 4 internal layers. In this 
way, the model is like a normal feed-forward model, thus can be configured 
similarly. The <a href="rnn.html">RNN example</a> has a full neural net 
configuration for a RNN model.</p></div></div>
+<div class="section">
+<h2><a name="Configuration_for_multiple_nets"></a>Configuration for multiple 
nets</h2>
+<p>Typically, a training job includes three neural nets for training, 
validation and test phase respectively. The three neural nets share most layers 
except the data layer, loss layer or output layer, etc.. To avoid redundant 
configurations for the shared layers, users can uses the <tt>exclude</tt> filed 
to filter a layer in the neural net, e.g., the following layer will be filtered 
when creating the testing <tt>NeuralNet</tt>.</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">layer {
+  ...
+  exclude : kTest # filter this layer for creating test net
+}
+</pre></div></div></div>
+<div class="section">
+<h2><a name="Neural_net_partitioning"></a>Neural net partitioning</h2>
+<p>A neural net can be partitioned in different ways to distribute the 
training over multiple workers.</p>
+<div class="section">
+<h3><a name="Batch_and_feature_dimension"></a>Batch and feature dimension</h3>
+<p><img src="../images/partition_fc.png" align="center" width="400px" alt="" 
/> <span><b>Figure 4 - Partitioning of a fully connected layer.</b></span></p>
+<p>Every layer&#x2019;s feature blob is considered a matrix whose rows are 
feature vectors. Thus, one layer can be split on two dimensions. Partitioning 
on dimension 0 (also called batch dimension) slices the feature matrix by rows. 
For instance, if the mini-batch size is 256 and the layer is partitioned into 2 
sub-layers, each sub-layer would have 128 feature vectors in its feature blob. 
Partitioning on this dimension has no effect on the parameters, as every <a 
href="param.html">Param</a> object is replicated in the sub-layers. 
Partitioning on dimension 1 (also called feature dimension) slices the feature 
matrix by columns. For example, suppose the original feature vector has 50 
units, after partitioning into 2 sub-layers, each sub-layer would have 25 
units. This partitioning may result in <a href="param.html">Param</a> object 
being split, as shown in Figure 4. Both the bias vector and weight matrix are 
partitioned into two sub-layers.</p></div>
+<div class="section">
+<h3><a name="Partitioning_configuration"></a>Partitioning configuration</h3>
+<p>There are 4 partitioning schemes, whose configurations are give below,</p>
+
+<ol style="list-style-type: decimal">
+  
+<li>
+<p>Partitioning each singe layer into sub-layers on batch dimension (see  
below). It is enabled by configuring the partition dimension of the layer to  
0, e.g.,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">  # with other fields omitted
+  layer {
+    partition_dim: 0
+  }
+</pre></div></div></li>
+  
+<li>
+<p>Partitioning each singe layer into sub-layers on feature dimension (see  
below). It is enabled by configuring the partition dimension of the layer to  
1, e.g.,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">  # with other fields omitted
+  layer {
+    partition_dim: 1
+  }
+</pre></div></div></li>
+  
+<li>
+<p>Partitioning all layers into different subsets. It is enabled by  
configuring the location ID of a layer, e.g.,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">  # with other fields omitted
+  layer {
+    location: 1
+  }
+  layer {
+    location: 0
+  }
+</pre></div></div></li>
+</ol>
+
+<ol style="list-style-type: decimal">
+  
+<li>
+<p>Hybrid partitioning of strategy 1, 2 and 3. The hybrid partitioning is  
useful for large models. An example application is to implement the  <a 
class="externalLink" href="http://arxiv.org/abs/1404.5997";>idea proposed by 
Alex</a>.  Hybrid partitioning is configured like,</p>
+  
+<div class="source">
+<div class="source"><pre class="prettyprint">  # with other fields omitted
+  layer {
+    location: 1
+  }
+  layer {
+    location: 0
+  }
+  layer {
+    partition_dim: 0
+    location: 0
+  }
+  layer {
+    partition_dim: 1
+    location: 0
+  }
+</pre></div></div></li>
+</ol>
+<p>Currently SINGA supports strategy-2 well. Other partitioning strategies are 
are under test and will be released in later version.</p></div></div>
+<div class="section">
+<h2><a name="Parameter_sharing"></a>Parameter sharing</h2>
+<p>Parameters can be shared in two cases,</p>
+
+<ul>
+  
+<li>
+<p>sharing parameters among layers via user configuration. For example, the  
visible layer and hidden layer of a RBM shares the weight matrix, which is 
configured through  the <tt>share_from</tt> field as shown in the above RBM 
configuration. The  configurations must be the same (except name) for shared 
parameters.</p></li>
+  
+<li>
+<p>due to neural net partitioning, some <tt>Param</tt> objects are replicated 
into  different workers, e.g., partitioning one layer on batch dimension. These 
 workers share parameter values. SINGA controls this kind of parameter  sharing 
automatically, users do not need to do any configuration.</p></li>
+  
+<li>
+<p>the <tt>NeuralNet</tt> for training and testing (and validation) share most 
layers  , thus share <tt>Param</tt> values.</p></li>
+</ul>
+<p>If the shared <tt>Param</tt> instances resident in the same process (may in 
different threads), they use the same chunk of memory space for their values. 
But they would have different memory spaces for their gradients. In fact, their 
gradients will be averaged by the stub or server.</p></div>
+<div class="section">
+<h2><a name="Advanced_user_guide"></a>Advanced user guide</h2>
+<div class="section">
+<h3><a name="Creation"></a>Creation</h3>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">static NeuralNet* 
NeuralNet::Create(const NetProto&amp; np, Phase phase, int num);
+</pre></div></div>
+<p>The above function creates a <tt>NeuralNet</tt> for a given phase, and 
returns a pointer to the <tt>NeuralNet</tt> instance. The phase is in {kTrain, 
kValidation, kTest}. <tt>num</tt> is used for net partitioning which indicates 
the number of partitions. Typically, a training job includes three neural nets 
for training, validation and test phase respectively. The three neural nets 
share most layers except the data layer, loss layer or output layer, etc.. The 
<tt>Create</tt> function takes in the full net configuration including layers 
for training, validation and test. It removes layers for phases other than the 
specified phase based on the <tt>exclude</tt> field in <a 
href="layer.html">layer configuration</a>:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">layer {
+  ...
+  exclude : kTest # filter this layer for creating test net
+}
+</pre></div></div>
+<p>The filtered net configuration is passed to the constructor of 
<tt>NeuralNet</tt>:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">NeuralNet::NeuralNet(NetProto 
netproto, int npartitions);
+</pre></div></div>
+<p>The constructor creates a graph representing the net structure firstly 
in</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">Graph* 
NeuralNet::CreateGraph(const NetProto&amp; netproto, int npartitions);
+</pre></div></div>
+<p>Next, it creates a layer for each node and connects layers if their nodes 
are connected.</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">void 
NeuralNet::CreateNetFromGraph(Graph* graph, int npartitions);
+</pre></div></div>
+<p>Since the <tt>NeuralNet</tt> instance may be shared among multiple workers, 
the <tt>Create</tt> function returns a pointer to the <tt>NeuralNet</tt> 
instance .</p></div>
+<div class="section">
+<h3><a name="Parameter_sharing"></a>Parameter sharing</h3>
+<p><tt>Param</tt> sharing is enabled by first sharing the Param configuration 
(in <tt>NeuralNet::Create</tt>) to create two similar (e.g., the same shape) 
Param objects, and then calling (in <tt>NeuralNet::CreateNetFromGraph</tt>),</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">void Param::ShareFrom(const 
Param&amp; from);
+</pre></div></div>
+<p>It is also possible to share <tt>Param</tt>s of two nets, e.g., sharing 
parameters of the training net and the test net,</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">void 
NeuralNet:ShareParamsFrom(NeuralNet* other);
+</pre></div></div>
+<p>It will call <tt>Param::ShareFrom</tt> for each Param object.</p></div>
+<div class="section">
+<h3><a name="Access_functions"></a>Access functions</h3>
+<p><tt>NeuralNet</tt> provides a couple of access function to get the layers 
and params of the net:</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">const 
std::vector&lt;Layer*&gt;&amp; layers() const;
+const std::vector&lt;Param*&gt;&amp; params() const ;
+Layer* name2layer(string name) const;
+Param* paramid2param(int id) const;
+</pre></div></div></div>
+<div class="section">
+<h3><a name="Partitioning"></a>Partitioning</h3>
+<div class="section">
+<h4><a name="Implementation"></a>Implementation</h4>
+<p>SINGA partitions the neural net in <tt>CreateGraph</tt> function, which 
creates one node for each (partitioned) layer. For example, if one 
layer&#x2019;s partition dimension is 0 or 1, then it creates 
<tt>npartition</tt> nodes for it; if the partition dimension is -1, a single 
node is created, i.e., no partitioning. Each node is assigned a partition (or 
location) ID. If the original layer is configured with a location ID, then the 
ID is assigned to each newly created node. These nodes are connected according 
to the connections of the original layers. Some connection layers will be added 
automatically. For instance, if two connected sub-layers are located at two 
different workers, then a pair of bridge layers is inserted to transfer the 
feature (and gradient) blob between them. When two layers are partitioned on 
different dimensions, a concatenation layer which concatenates feature rows (or 
columns) and a slice layer which slices feature rows (or columns) would be 
inserted. These 
 connection layers help making the network communication and synchronization 
transparent to the users.</p></div>
+<div class="section">
+<h4><a name="Dispatching_partitions_to_workers"></a>Dispatching partitions to 
workers</h4>
+<p>Each (partitioned) layer is assigned a location ID, based on which it is 
dispatched to one worker. Particularly, the pointer to the <tt>NeuralNet</tt> 
instance is passed to every worker within the same group, but each worker only 
computes over the layers that have the same partition (or location) ID as the 
worker&#x2019;s ID. When every worker computes the gradients of the entire 
model parameters (strategy-2), we refer to this process as data parallelism. 
When different workers compute the gradients of different parameters 
(strategy-3 or strategy-1), we call this process model parallelism. The hybrid 
partitioning leads to hybrid parallelism where some workers compute the 
gradients of the same subset of model parameters while other workers compute on 
different model parameters. For example, to implement the hybrid parallelism in 
for the <a class="externalLink" href="http://arxiv.org/abs/1404.5997";>DCNN 
model</a>, we set <tt>partition_dim = 0</tt> for lower layers and <tt>partition
 _dim = 1</tt> for higher layers.</p></div></div></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. 
Apache Singa, Apache, the Apache feather logo, and the Apache Singa project 
logos are trademarks of The Apache Software Foundation. All other marks 
mentioned may be trademarks or registered trademarks of their respective 
owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/singa/trunk/content/v0.3.0/zh/overview.html
==============================================================================
--- websites/staging/singa/trunk/content/v0.3.0/zh/overview.html (added)
+++ websites/staging/singa/trunk/content/v0.3.0/zh/overview.html Wed Apr 20 
05:12:03 2016
@@ -0,0 +1,371 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-04-20 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160420" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; 简介</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script 
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
 type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: 
[['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa";>
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 
10000;"
+        
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png";
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn 
btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache 
SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  
title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  
title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  
title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" 
data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  
title="v0.3.0">v0.3.0</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/index.html"  
title="English">English</a>
+</li>
+                                  <li>      <a href="../../docs/zh/index.html" 
 title="中文">中文</a>
+</li>
+                                  <li>      <a href="../../docs/jp/index.html" 
 title="日本語">日本語</a>
+</li>
+                                  <li>      <a href="../../docs/kr/index.html" 
 title="한국어">한국어</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.2.0/index.html"  
title="v0.2.0">v0.2.0</a>
+</li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  
title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  
title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a 
href="../../develop/how-contribute.html"  title="How to Contribute">How to 
Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a 
href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a 
href="../../develop/contribute-docs.html"  
title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a 
href="../../community/source-repository.html"  title="Source Repository">Source 
Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  
title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  
title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  
title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External 
Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/";  
title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/";  title="NUS Site">NUS 
Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" 
id="bannerLeft" title="Apache SINGA">
+                                                                               
                 <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                               
                 <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">简介</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" 
title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick 
Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                               
                                                       
+      <li>
+  
+                          <a href="../../docs/index.html" title="v0.3.0">
+          <span class="icon-chevron-right"></span>
+        v0.3.0</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.2.0/index.html" title="v0.2.0">
+          <span class="none"></span>
+        v0.2.0</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" 
title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                               
     
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" 
title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" 
title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" 
title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" 
title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" 
title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/"; 
class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/"; class="externalLink" 
title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                               
                                    <a href="http://incubator.apache.org"; 
title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" 
src="http://incubator.apache.org/images/egg-logo.png";    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>&#x7b80;&#x4ecb;</h1>
+<hr />
+<p>SINGA&#x662f;&#x4e00;&#x4e2a;&#x901a;&#x7528;&#x7684;&#x5206;&#x5e03;&#x5f0f;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x5e73;&#x53f0;&#xff0c;&#x9762;&#x5411;&#x8bad;&#x7ec3;&#x5927;&#x89c4;&#x6a21;&#x6570;&#x636e;&#x96c6;&#x4e0a;&#x7684;&#x5927;&#x578b;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x3002;&#x5176;&#x8bbe;&#x8ba1;&#x57fa;&#x4e8e;&#x4e00;&#x79cd;&#x76f4;&#x89c2;&#x7684;&#x7f16;&#x7a0b;&#x6a21;&#x578b;&#xff0c;&#x5373;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x4e2d;&#x5c42;&#xff08;layer&#xff09;&#x7684;&#x62bd;&#x8c61;&#x3002;SINGA&#x652f;&#x6301;&#x5927;&#x90e8;&#x5206;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#xff0c;&#x5305;&#x62ec;&#x5377;&#x79ef;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#xff08;CNN&#xff09;&#x3001;&#x53d7;&#x9650;&#x6ce2;&#x5c14;&#x5179;&#x66fc;&#x6a21;&#x578b;&#xff08;RBM&#xff09;&#x548c;&#x5faa;&#x73af;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#xff08;RNN&#xff09;&#x7b49;&#xff0c;&#x4e3a;&#x7528;&#x6237;&#x63d0;&#x4f9b;&#x8bb8;&#x591a;&#x53ef;&#x76f4;&#x63a5;&#x4f7f;&#x7528;&#
 
x7684;&#x5185;&#x5efa;&#x5c42;&#x3002;SINGA&#x67b6;&#x6784;&#x7075;&#x6d3b;&#xff0c;&#x652f;&#x6301;&#x540c;&#x6b65;&#x8bad;&#x7ec3;&#x3001;&#x5f02;&#x6b65;&#x8bad;&#x7ec3;&#x548c;&#x6df7;&#x5408;&#x5f0f;&#x8bad;&#x7ec3;&#x3002;&#x4e3a;&#x4e86;&#x5e76;&#x884c;&#x5730;&#x8bad;&#x7ec3;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#xff0c;SINGA&#x652f;&#x6301;&#x4e0d;&#x540c;&#x7684;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#x5212;&#x5206;&#x673a;&#x5236;&#xff0c;&#x5373;&#x6279;&#x6b21;&#x7ef4;&#x5ea6;&#x5212;&#x5206;&#xff08;batch
 dimension 
partition&#xff09;&#xff0c;&#x7279;&#x5f81;&#x7ef4;&#x5ea6;&#x5212;&#x5206;&#xff08;feature
 dimension 
partition&#xff09;&#x548c;&#x591a;&#x7ef4;&#x5ea6;&#x6df7;&#x5408;&#x5212;&#x5206;&#xff08;hybrid
 partition&#xff09;&#x3002;</p>
+<div class="section">
+<h2><a name="a"></a>&#x76ee;&#x6807;</h2>
+<p>&#x4f5c;&#x4e3a;&#x4e00;&#x4e2a;&#x5206;&#x5e03;&#x5f0f;&#x7cfb;&#x7edf;&#xff0c;SINGA&#x7684;&#x9996;&#x8981;&#x76ee;&#x6807;&#x5c31;&#x662f;&#x5177;&#x6709;&#x826f;&#x597d;&#x7684;&#x53ef;&#x6269;&#x5c55;&#x6027;&#x3002;&#x6362;&#x8a00;&#x4e4b;&#xff0c;SINGA&#x5e0c;&#x671b;&#x5728;&#x51c6;&#x786e;&#x5ea6;&#x4e00;&#x5b9a;&#x7684;&#x60c5;&#x51b5;&#x4e0b;&#xff0c;&#x901a;&#x8fc7;&#x5229;&#x7528;&#x66f4;&#x591a;&#x7684;&#x8ba1;&#x7b97;&#x8d44;&#x6e90;&#xff08;&#x5373;&#x8ba1;&#x7b97;&#x673a;&#xff09;&#x51cf;&#x5c11;&#x6a21;&#x578b;&#x7684;&#x8bad;&#x7ec3;&#x65f6;&#x95f4;&#x3002;</p>
+<p>SINGA&#x7684;&#x53e6;&#x4e00;&#x4e2a;&#x76ee;&#x6807;&#x662f;&#x6613;&#x7528;&#x6027;&#x3002;&#x5bf9;&#x7a0b;&#x5e8f;&#x5458;&#x6765;&#x8bf4;&#xff0c;&#x5f00;&#x53d1;&#x548c;&#x8bad;&#x7ec3;&#x6df1;&#x5c42;&#x7684;&#x590d;&#x6742;&#x7ed3;&#x6784;&#x7684;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x5341;&#x5206;&#x56f0;&#x96be;&#x3002;&#x5206;&#x5e03;&#x5f0f;&#x8bad;&#x7ec3;&#x53c8;&#x8fdb;&#x4e00;&#x6b65;&#x589e;&#x52a0;&#x4e86;&#x7a0b;&#x5e8f;&#x5458;&#x7684;&#x8d1f;&#x62c5;&#xff0c;&#x6bd4;&#x5982;&#xff1a;&#x6570;&#x636e;&#x548c;&#x6a21;&#x578b;&#x5212;&#x5206;&#xff0c;&#x7f51;&#x7edc;&#x901a;&#x4fe1;&#x7b49;&#x3002;&#x56e0;&#x6b64;&#xff0c;&#x63d0;&#x4f9b;&#x4e00;&#x4e2a;&#x6613;&#x7528;&#x7684;&#x7f16;&#x7a0b;&#x6a21;&#x578b;&#x662f;&#x5341;&#x5206;&#x91cd;&#x8981;&#x7684;&#xff0c;&#x53ef;&#x4ee5;&#x8ba9;&#x7a0b;&#x5e8f;&#x5458;&#x5728;&#x5b9e;&#x73b0;&#x81ea;&#x5df1;&#x7684;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x548c;&#x7b97;&#x6cd5;&#x65f6;&#x4e0d;&#x5fc5;&#x80
 
03;&#x8651;&#x5e95;&#x5c42;&#x7684;&#x5206;&#x5e03;&#x5f0f;&#x5e73;&#x53f0;&#x3002;</p></div>
+<div class="section">
+<h2><a name="a"></a>&#x539f;&#x5219;</h2>
+<p>&#x6269;&#x5c55;&#x6027;&#x662f;&#x5206;&#x5e03;&#x5f0f;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x7684;&#x91cd;&#x8981;&#x7814;&#x7a76;&#x95ee;&#x9898;&#x3002;SINGA&#x63d0;&#x4f9b;&#x4e86;&#x4e00;&#x4e2a;&#x5229;&#x7528;&#x4e0d;&#x540c;&#x8bad;&#x7ec3;&#x6846;&#x67b6;&#x6269;&#x5c55;&#x6027;&#x7684;&#x901a;&#x7528;&#x5e73;&#x53f0;&#x3002;&#x540c;&#x6b65;&#x8bad;&#x7ec3;&#x6846;&#x67b6;&#x53ef;&#x63d0;&#x9ad8;&#x6bcf;&#x6b21;&#x8bad;&#x7ec3;&#x8fed;&#x4ee3;&#x7684;&#x6548;&#x7387;&#xff0c;&#x540c;&#x65f6;&#x5f02;&#x6b65;&#x8bad;&#x7ec3;&#x6846;&#x67b6;&#x53ef;&#x52a0;&#x5feb;&#x6a21;&#x578b;&#x6536;&#x655b;&#x3002;&#x5728;&#x9884;&#x7b97;&#xff08;&#x6bd4;&#x5982;&#xff1a;&#x96c6;&#x7fa4;&#x89c4;&#x6a21;&#xff09;&#x4e00;&#x5b9a;&#x7684;&#x60c5;&#x51b5;&#x4e0b;&#xff0c;&#x7528;&#x6237;&#x53ef;&#x4ee5;&#x8fd0;&#x884c;&#x4e00;&#x4e2a;&#x6df7;&#x5408;&#x8bad;&#x7ec3;&#x6846;&#x67b6;&#xff0c;&#x5728;&#x6548;&#x7387;&#x548c;&#x6536;&#x655b;&#x901f;&#x5ea6;&#x4e4b;&#x95f4;&#x6743;&#x8861;&#xff0c;&#x4e
 e5;&#x53d6;&#x5f97;&#x6700;&#x5927;&#x7684;&#x6269;&#x5c55;&#x6027;&#x3002;</p>
+<p>SINGA&#x7684;&#x7f16;&#x7a0b;&#x6a21;&#x578b;&#x662f;&#x57fa;&#x4e8e;&#x5c42;&#x7684;&#x62bd;&#x8c61;&#x800c;&#x8bbe;&#x8ba1;&#xff0c;&#x8fd9;&#x5bf9;&#x4e8e;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x800c;&#x8a00;&#x662f;&#x5341;&#x5206;&#x76f4;&#x89c2;&#x7684;&#x3002;&#x5f88;&#x591a;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x53ef;&#x4ee5;&#x76f4;&#x63a5;&#x7528;&#x8fd9;&#x79cd;&#x7f16;&#x7a0b;&#x6a21;&#x578b;&#x6765;&#x8868;&#x8fbe;&#x548c;&#x8bad;&#x7ec3;&#x3002;</p></div>
+<div class="section">
+<h2><a name="a"></a>&#x7cfb;&#x7edf;&#x6982;&#x89c8;</h2>
+<p><img src="../../images/sgd.png" align="center" width="400px" alt="" /> 
<span><b>&#x56fe;1 - 
&#x968f;&#x673a;&#x68af;&#x5ea6;&#x4e0b;&#x964d;&#x6d41;&#x7a0b;&#x56fe;</b></span></p>
+<p>&#x5bf9;&#x4e8e;&#x7279;&#x5b9a;&#x7684;&#x4efb;&#x52a1;&#xff0c;&#x8bad;&#x7ec3;&#x4e00;&#x4e2a;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x5c31;&#x662f;&#x627e;&#x51fa;&#x80fd;&#x4ea7;&#x751f;&#x826f;&#x597d;&#x7279;&#x5f81;&#x7684;&#x8f6c;&#x6362;&#x51fd;&#x6570;&#x4e2d;&#x7684;&#x6700;&#x4f18;&#x53c2;&#x6570;&#x3002;&#x53c2;&#x6570;&#x7684;&#x5408;&#x9002;&#x7a0b;&#x5ea6;&#x7531;&#x635f;&#x5931;&#x51fd;&#x6570;&#x6765;&#x5ea6;&#x91cf;&#xff0c;&#x5982;&#x4ea4;&#x53c9;&#x71b5;&#x635f;&#x5931;&#x51fd;&#x6570;<a
 class="externalLink" 
href="https://en.wikipedia.org/wiki/Cross_entropy";>&#xff08;Cross-Entropy 
Loss&#xff09;</a>&#x3002;&#x56e0;&#x4e3a;&#x635f;&#x5931;&#x51fd;&#x6570;&#x4e00;&#x822c;&#x90fd;&#x662f;&#x975e;&#x7ebf;&#x6027;&#x548c;&#x975e;&#x51f8;&#x7684;&#xff0c;&#x96be;&#x4ee5;&#x5f97;&#x5230;&#x4e00;&#x4e2a;&#x5c01;&#x95ed;&#x5f62;&#x5f0f;&#x89e3;&#x3002;&#x5178;&#x578b;&#x7684;&#x89e3;&#x51b3;&#x65b9;&#x6848;&#x662f;&#x4f7f;&#x7528;&#x968f;&#x673a;&#x68af;&#x5ea6;&
 
#x4e0b;&#x964d;&#xff08;SGD&#xff09;&#x7b97;&#x6cd5;&#xff0c;&#x9996;&#x5148;&#x968f;&#x673a;&#x5730;&#x521d;&#x59cb;&#x5316;&#x53c2;&#x6570;&#xff0c;&#x7136;&#x540e;&#x8fed;&#x4ee3;&#x5730;&#x66f4;&#x65b0;&#x53c2;&#x6570;&#x503c;&#xff0c;&#x51cf;&#x5c0f;&#x635f;&#x5931;&#x51fd;&#x6570;&#x503c;&#xff0c;&#x5982;&#x56fe;1&#x6240;&#x793a;&#x3002;</p>
+<p><img src="../../images/overview.png" align="center" width="400px" alt="" /> 
<span><b>&#x56fe;2 - SINGA &#x6982;&#x89c8;</b></span></p>
+<p>SINGA&#x4f7f;&#x7528;&#x968f;&#x673a;&#x68af;&#x5ea6;&#x4e0b;&#x964d;&#x6765;&#x8bad;&#x7ec3;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#x4e2d;&#x7684;&#x53c2;&#x6570;&#x3002;&#x8bad;&#x7ec3;&#x7684;&#x4f5c;&#x4e1a;&#x4f1a;&#x88ab;&#x5206;&#x914d;&#x5230;&#x4f5c;&#x4e1a;&#x8005;&#xff08;worker&#xff09;&#x5355;&#x5143;&#x548c;&#x670d;&#x52a1;&#x5668;&#xff08;server&#xff09;&#x5355;&#x5143;&#xff0c;&#x5982;&#x56fe;2&#x6240;&#x793a;&#x3002;&#x6bcf;&#x6b21;&#x8fed;&#x4ee3;&#x4e2d;&#xff0c;&#x4f5c;&#x4e1a;&#x8005;&#x8c03;&#x7528;
 <i>TrainOneBatch</i> 
&#x51fd;&#x6570;&#x8ba1;&#x7b97;&#x53c2;&#x6570;&#x7684;&#x68af;&#x5ea6;&#x3002;
 <i>TainOneBatch</i> 
&#x51fd;&#x6570;&#x4ee5;&#x4e00;&#x4e2a;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#x5bf9;&#x8c61;
 <i>NeuralNet</i> 
&#x4f5c;&#x4e3a;&#x8f93;&#x5165;&#xff0c;&#x4ee5;&#x4e00;&#x5b9a;&#x7684;&#x987a;&#x5e8f;&#x904d;&#x5386;
 
<i>NeuralNet</i>&#x3002;&#x8ba1;&#x7b97;&#x5f97;&#x5230;&#x7684;&#x68af;&#x5ea6;&#x5c06;&#x53d1;&#x9001;&#x7ed9;&#x5c40;&#x90e8;&#
 
x7684;&#x6839;&#x8282;&#x70b9;&#xff08;stub&#xff09;&#xff0c;&#x8be5;&#x5c40;&#x90e8;&#x6839;&#x8282;&#x70b9;&#x805a;&#x5408;&#x8bf7;&#x6c42;&#x5e76;&#x8f6c;&#x53d1;&#x7ed9;&#x5bf9;&#x5e94;&#x7684;&#x670d;&#x52a1;&#x5668;&#x8bf7;&#x6c42;&#x66f4;&#x65b0;&#x3002;&#x670d;&#x52a1;&#x5668;&#x7ed9;&#x4f5c;&#x4e1a;&#x8005;&#x53d1;&#x56de;&#x66f4;&#x65b0;&#x540e;&#x7684;&#x53c2;&#x6570;&#xff0c;&#x8fdb;&#x5165;&#x4e0b;&#x4e00;&#x8f6e;&#x8fed;&#x4ee3;&#x3002;</p></div>
+<div class="section">
+<h2><a name="a"></a>&#x4f5c;&#x4e1a;&#x63d0;&#x4ea4;</h2>
+<p>&#x5728;SINGA&#x4e2d;&#x63d0;&#x4ea4;&#x4e00;&#x4e2a;&#x4f5c;&#x4e1a;&#xff08;&#x5373;&#x8bad;&#x7ec3;&#x4e00;&#x4e2a;&#x6df1;&#x5ea6;&#x5b66;&#x4e60;&#x6a21;&#x578b;&#xff09;&#xff0c;&#x7528;&#x6237;&#x9700;&#x8981;&#x5c06;&#x4efb;&#x52a1;&#x914d;&#x7f6e;&#x4f20;&#x7ed9;<a
 
href="programming-guide.html">&#x4e3b;&#x51fd;&#x6570;</a>&#x4e2d;&#x7684;SINGA 
driver&#x3002;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x9700;&#x8981;&#x660e;&#x786e;&#x56fe;2&#x4e2d;&#x7684;&#x56db;&#x4e2a;&#x4e3b;&#x8981;&#x90e8;&#x5206;&#xff1a;</p>
+
+<ul>
+  
+<li><a href="neural-net.html">NeuralNet</a> 
&#xff1a;&#x63cf;&#x8ff0;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#x7ed3;&#x6784;&#xff0c;&#x5305;&#x62ec;&#x6bcf;&#x5c42;&#x7684;&#x5177;&#x4f53;&#x8bbe;&#x7f6e;&#x548c;&#x5c42;&#x4e0e;&#x5c42;&#x7684;&#x8fde;&#x63a5;&#x5173;&#x7cfb;&#xff1b;</li>
+  
+<li><a href="train-one-batch.html">TrainOneBatch</a> 
&#xff1a;&#x8be5;&#x7b97;&#x6cd5;&#x9700;&#x8981;&#x6839;&#x636e;&#x4e0d;&#x540c;&#x7684;&#x6a21;&#x578b;&#x7c7b;&#x522b;&#x800c;&#x5b9a;&#x5236;;</li>
+  
+<li><a href="updater.html">Updater</a> 
&#xff1a;&#x5b9a;&#x4e49;&#x670d;&#x52a1;&#x5668;&#x7aef;&#x66f4;&#x65b0;&#x53c2;&#x6570;&#x7684;&#x534f;&#x8bae;&#xff1b;</li>
+  
+<li><a href="distributed-training.html">Cluster Topology</a> 
&#xff1a;&#x6307;&#x5b9a;&#x670d;&#x52a1;&#x5668;&#x548c;&#x5de5;&#x4f5c;&#x8005;&#x7684;&#x5206;&#x5e03;&#x5f0f;&#x62d3;&#x6251;&#x67b6;&#x6784;&#x3002;</li>
+</ul>
+<p>&#x4f5c;&#x4e1a;&#x63d0;&#x4ea4;&#x8fc7;&#x7a0b;&#x8ddf;Hadoop&#x7684;&#x4f5c;&#x4e1a;&#x63d0;&#x4ea4;&#x7c7b;&#x4f3c;&#xff0c;&#x7528;&#x6237;&#x5728;&#x4e3b;&#x51fd;&#x6570;&#x4e2d;&#x914d;&#x7f6e;&#x597d;&#x81ea;&#x5df1;&#x7684;&#x4efb;&#x52a1;&#xff0c;&#x8bbe;&#x7f6e;mapper&#x548c;reducer&#x7b49;&#x3002;&#x5728;Hadoop&#x4e2d;&#xff0c;&#x7528;&#x6237;&#x53ef;&#x7528;&#x81ea;&#x5df1;&#x5b9e;&#x73b0;&#x7684;&#x6216;&#x8005;&#x5185;&#x5efa;&#x7684;mapper&#x548c;reducer&#x6765;&#x914d;&#x7f6e;&#x4ed6;&#x4eec;&#x7684;&#x4f5c;&#x4e1a;&#xff1b;&#x7c7b;&#x4f3c;&#x5730;&#xff0c;&#x5728;SINGA&#x4e2d;&#xff0c;&#x7528;&#x6237;&#x4e5f;&#x53ef;&#x4ee5;&#x7528;&#x81ea;&#x5df1;&#x5b9e;&#x73b0;&#x7684;&#x6216;&#x8005;&#x5185;&#x5efa;&#x7684;layer&#xff0c;updater&#x7b49;&#x6765;&#x914d;&#x7f6e;&#x4ed6;&#x4eec;&#x7684;&#x4f5c;&#x4e1a;&#x3002;</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. 
Apache Singa, Apache, the Apache feather logo, and the Apache Singa project 
logos are trademarks of The Apache Software Foundation. All other marks 
mentioned may be trademarks or registered trademarks of their respective 
owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>

Added: websites/staging/singa/trunk/content/v0.3.0/zh/programming-guide.html
==============================================================================
--- websites/staging/singa/trunk/content/v0.3.0/zh/programming-guide.html 
(added)
+++ websites/staging/singa/trunk/content/v0.3.0/zh/programming-guide.html Wed 
Apr 20 05:12:03 2016
@@ -0,0 +1,407 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2016-04-20 
+ | Rendered using Apache Maven Fluido Skin 1.4
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20160420" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache SINGA &#x2013; 编程指南</title>
+    <link rel="stylesheet" href="../../css/apache-maven-fluido-1.4.min.css" />
+    <link rel="stylesheet" href="../../css/site.css" />
+    <link rel="stylesheet" href="../../css/print.css" media="print" />
+
+      
+    
+    
+  
+    <script type="text/javascript" 
src="../../js/apache-maven-fluido-1.4.min.js"></script>
+
+                          
+        
+<script 
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
 type="text/javascript"></script>
+                      
+        
+<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: 
[['$','$'], ['\\(','\\)']]}});</script>
+                      
+        
+<meta content="Apache SINGA" name="author"/>
+                      
+        
+<meta content="SINGA, Deep Learning, Distributed training" name="keywords"/>
+          
+                  </head>
+        <body class="topBarEnabled">
+          
+    
+    
+            
+    
+        
+    <a href="https://github.com/apache/incubator-singa";>
+      <img style="position: absolute; top: 0; right: 0; border: 0; z-index: 
10000;"
+        
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png";
+        alt="Fork me on GitHub">
+    </a>
+  
+                
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
+      <div class="navbar-inner">
+                <div class="container-fluid">
+        <a data-target=".nav-collapse" data-toggle="collapse" class="btn 
btn-navbar">
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+          <span class="icon-bar"></span>
+        </a>
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache 
SINGA <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../docs/overview.html"  
title="Introduction">Introduction</a>
+</li>
+                  
+                      <li>      <a href="../../docs/quick-start.html"  
title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="../../downloads.html"  
title="Downloads">Downloads</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" 
data-toggle="dropdown">Documentaion <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="../../docs/index.html"  
title="v0.3.0">v0.3.0</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="../../docs/index.html"  
title="English">English</a>
+</li>
+                                  <li>      <a href="../../docs/zh/index.html" 
 title="中文">中文</a>
+</li>
+                                  <li>      <a href="../../docs/jp/index.html" 
 title="日本語">日本語</a>
+</li>
+                                  <li>      <a href="../../docs/kr/index.html" 
 title="한국어">한국어</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li>      <a href="../../v0.2.0/index.html"  
title="v0.2.0">v0.2.0</a>
+</li>
+                  
+                      <li>      <a href="../../v0.1.0/index.html"  
title="v0.1.0">v0.1.0</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Development 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="../../develop/schedule.html"  
title="Schedule">Schedule</a>
+</li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a 
href="../../develop/how-contribute.html"  title="How to Contribute">How to 
Contribute</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a 
href="../../develop/contribute-code.html"  title="Code">Code</a>
+</li>
+                                  <li>      <a 
href="../../develop/contribute-docs.html"  
title="Documentation">Documentation</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Community 
<b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a 
href="../../community/source-repository.html"  title="Source Repository">Source 
Repository</a>
+</li>
+                  
+                      <li>      <a href="../../community/mail-lists.html"  
title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="../../community/issue-tracking.html"  
title="Issue Tracking">Issue Tracking</a>
+</li>
+                  
+                      <li>      <a href="../../community/team-list.html"  
title="SINGA Team">SINGA Team</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">External 
Links <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/";  
title="Apache Software Foundation">Apache Software Foundation</a>
+</li>
+                  
+                      <li>      <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/";  title="NUS Site">NUS 
Site</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+          
+          
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="../../index.html" 
id="bannerLeft" title="Apache SINGA">
+                                                                               
                 <img src="../../images/singa-logo.png"  alt="Apache SINGA"/>
+                </a>
+                      </div>
+        <div class="pull-right">              <div id="bannerRight">
+                                                                               
                 <img src="../../images/singa-title.png"  alt="Apache SINGA"/>
+                </div>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="../../index.html" title="Apache SINGA">
+        Apache SINGA</a>
+                    <span class="divider">/</span>
+      </li>
+        <li class="active ">编程指南</li>
+        
+                
+                    
+      
+                            </ul>
+      </div>
+
+                  
+      <div class="row-fluid">
+        <div id="leftColumn" class="span2">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache SINGA</li>
+                              
+      <li>
+  
+                          <a href="../../docs/overview.html" 
title="Introduction">
+          <span class="none"></span>
+        Introduction</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../docs/quick-start.html" title="Quick 
Start">
+          <span class="none"></span>
+        Quick Start</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../downloads.html" title="Downloads">
+          <span class="none"></span>
+        Downloads</a>
+            </li>
+                              <li class="nav-header">Documentaion</li>
+                                                                               
                                                       
+      <li>
+  
+                          <a href="../../docs/index.html" title="v0.3.0">
+          <span class="icon-chevron-right"></span>
+        v0.3.0</a>
+                  </li>
+                
+      <li>
+  
+                          <a href="../../v0.2.0/index.html" title="v0.2.0">
+          <span class="none"></span>
+        v0.2.0</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../v0.1.0/index.html" title="v0.1.0">
+          <span class="none"></span>
+        v0.1.0</a>
+            </li>
+                              <li class="nav-header">Development</li>
+                              
+      <li>
+  
+                          <a href="../../develop/schedule.html" 
title="Schedule">
+          <span class="none"></span>
+        Schedule</a>
+            </li>
+                                                                               
     
+      <li>
+  
+                          <a href="../../develop/how-contribute.html" 
title="How to Contribute">
+          <span class="icon-chevron-right"></span>
+        How to Contribute</a>
+                  </li>
+                              <li class="nav-header">Community</li>
+                              
+      <li>
+  
+                          <a href="../../community/source-repository.html" 
title="Source Repository">
+          <span class="none"></span>
+        Source Repository</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/mail-lists.html" 
title="Mailing Lists">
+          <span class="none"></span>
+        Mailing Lists</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/issue-tracking.html" 
title="Issue Tracking">
+          <span class="none"></span>
+        Issue Tracking</a>
+            </li>
+                
+      <li>
+  
+                          <a href="../../community/team-list.html" 
title="SINGA Team">
+          <span class="none"></span>
+        SINGA Team</a>
+            </li>
+                              <li class="nav-header">External Links</li>
+                              
+      <li>
+  
+                          <a href="http://www.apache.org/"; 
class="externalLink" title="Apache Software Foundation">
+          <span class="none"></span>
+        Apache Software Foundation</a>
+            </li>
+                
+      <li>
+  
+                          <a 
href="http://www.comp.nus.edu.sg/~dbsystem/singa/"; class="externalLink" 
title="NUS Site">
+          <span class="none"></span>
+        NUS Site</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                               
                                    <a href="http://incubator.apache.org"; 
title="apache-incubator" class="builtBy">
+        <img class="builtBy"  alt="Apache Incubator" 
src="http://incubator.apache.org/images/egg-logo.png";    />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                        
+        <div id="bodyColumn"  class="span10" >
+                                  
+            <h1>&#x7f16;&#x7a0b;&#x6307;&#x5357;</h1>
+<hr />
+<p>&#x8981;&#x63d0;&#x4ea4;&#x4e00;&#x4e2a;&#x8bad;&#x7ec3;&#x4f5c;&#x4e1a;&#xff0c;&#x7528;&#x6237;&#x9700;&#x8981;&#x63d0;&#x4f9b;&#x56fe;1&#x4e2d;&#x7684;&#x56db;&#x4e2a;&#x90e8;&#x5206;&#x7684;&#x914d;&#x7f6e;&#xff1a;</p>
+
+<ul>
+  
+<li><a href="neural-net.html">NeuralNet</a> 
&#xff1a;&#x63cf;&#x8ff0;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#x7ed3;&#x6784;&#xff0c;&#x5305;&#x62ec;&#x6bcf;&#x5c42;&#x7684;&#x5177;&#x4f53;&#x8bbe;&#x7f6e;&#x548c;&#x5c42;&#x4e0e;&#x5c42;&#x7684;&#x8fde;&#x63a5;&#x5173;&#x7cfb;&#xff1b;</li>
+  
+<li><a href="train-one-batch.html">TrainOneBatch</a> 
&#xff1a;&#x8be5;&#x7b97;&#x6cd5;&#x9700;&#x8981;&#x6839;&#x636e;&#x4e0d;&#x540c;&#x7684;&#x6a21;&#x578b;&#x7c7b;&#x522b;&#x800c;&#x5b9a;&#x5236;;</li>
+  
+<li><a href="updater.html">Updater</a> 
&#xff1a;&#x5b9a;&#x4e49;&#x670d;&#x52a1;&#x5668;&#x7aef;&#x66f4;&#x65b0;&#x53c2;&#x6570;&#x7684;&#x534f;&#x8bae;&#xff1b;</li>
+  
+<li><a href="distributed-training.html">Cluster Topology</a> 
&#xff1a;&#x6307;&#x5b9a;&#x670d;&#x52a1;&#x5668;&#x548c;&#x5de5;&#x4f5c;&#x8005;&#x7684;&#x5206;&#x5e03;&#x5f0f;&#x62d3;&#x6251;&#x67b6;&#x6784;&#x3002;</li>
+</ul>
+<p><i>&#x521d;&#x7ea7;&#x7528;&#x6237;&#x6307;&#x5357;</i> 
&#x5c06;&#x4ecb;&#x7ecd;&#x5982;&#x4f55;&#x5229;&#x7528;&#x5185;&#x5efa;&#x5c42;&#x63d0;&#x4ea4;&#x4e00;&#x4e2a;&#x8bad;&#x7ec3;&#x4f5c;&#x4e1a;&#xff0c;&#x800c;
 <i>&#x9ad8;&#x7ea7;&#x7528;&#x6237;&#x6307;&#x5357;</i> 
&#x5c06;&#x8be6;&#x7ec6;&#x4ecb;&#x7ecd;&#x5982;&#x4f55;&#x7f16;&#x5199;&#x7528;&#x6237;&#x81ea;&#x5df1;&#x7684;&#x4e3b;&#x51fd;&#x6570;&#x5e76;&#x6ce8;&#x518c;&#x81ea;&#x5df1;&#x5b9e;&#x73b0;&#x7684;&#x7ec4;&#x4ef6;&#x3002;&#x6b64;&#x5916;&#xff0c;&#x9ad8;&#x7ea7;&#x7528;&#x6237;&#x548c;&#x521d;&#x7ea7;&#x7528;&#x6237;&#x5bf9;&#x8bad;&#x7ec3;&#x6570;&#x636e;&#x96c6;&#x7684;<a
 
href="data.html">&#x5904;&#x7406;</a>&#x65b9;&#x5f0f;&#x662f;&#x76f8;&#x540c;&#x7684;&#x3002;</p>
+<p><img src="../../images/overview.png" align="center" width="400px" alt="" /> 
<span><b>&#x56fe; 1 - SINGA &#x6982;&#x89c8;</b></span></p>
+<div class="section">
+<h2><a name="a"></a>&#x521d;&#x7ea7;&#x7528;&#x6237;&#x6307;&#x5357;</h2>
+<p>&#x7528;&#x6237;&#x53ef;&#x4ee5;&#x4f7f;&#x7528;SINGA&#x63d0;&#x4f9b;&#x7684;&#x4e3b;&#x51fd;&#x6570;&#x63d0;&#x4ea4;&#x8bad;&#x7ec3;&#x4f5c;&#x4e1a;&#x3002;&#x5bf9;&#x4e8e;&#x8fd9;&#x79cd;&#x60c5;&#x51b5;&#xff0c;&#x7528;&#x6237;&#x5fc5;&#x987b;&#x5728;&#x547d;&#x4ee4;&#x884c;&#x4e2d;&#x63d0;&#x4f9b;&#x6839;&#x636e;
 <a href="../api/classsinga_1_1JobProto.html">JobProto</a> 
&#x8bbe;&#x7f6e;&#x7684;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x6587;&#x4ef6;&#xff0c;</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">./bin/singa-run.sh -conf &lt;path 
to job conf&gt; [-resume]
+</pre></div></div>
+<p><tt>-resume</tt> &#x8868;&#x793a;&#x4ece;&#x4e0a;&#x6b21;&#x7684;<a 
href="checkpoint.html">&#x68c0;&#x67e5;&#x70b9;&#xff08;checkpoint&#xff09;</a>&#x7ee7;&#x7eed;&#x8bad;&#x7ec3;&#x3002;
 <a href="mlp.html">MLP</a> &#x6a21;&#x578b;&#x548c; <a href="cnn.html">CNN</a> 
&#x6a21;&#x578b;&#x4f7f;&#x7528;&#x5185;&#x5efa;&#x5c42;&#x63d0;&#x4ea4;&#x8bad;&#x7ec3;&#x4f5c;&#x4e1a;&#x3002;&#x8bf7;&#x9605;&#x8bfb;&#x76f8;&#x5173;&#x9875;&#x9762;&#xff0c;&#x67e5;&#x770b;&#x5b83;&#x4eec;&#x7684;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x6587;&#x4ef6;&#xff0c;&#x8fd9;&#x4e9b;&#x9875;&#x9762;&#x4f1a;&#x4ecb;&#x7ecd;&#x6bcf;&#x4e2a;&#x7ec4;&#x4ef6;&#x914d;&#x7f6e;&#x7684;&#x7ec6;&#x8282;&#x3002;</p></div>
+<div class="section">
+<h2><a name="a"></a>&#x9ad8;&#x7ea7;&#x7528;&#x6237;&#x6307;&#x5357;</h2>
+<p>&#x5982;&#x679c;&#x7528;&#x6237;&#x7684;&#x6a21;&#x578b;&#x4e2d;&#x5305;&#x542b;&#x4e00;&#x4e9b;&#x81ea;&#x5df1;&#x5b9a;&#x4e49;&#x7684;&#x7ec4;&#x4ef6;&#xff0c;&#x6bd4;&#x5982;<a
 
href="updater.html">Updater</a>&#xff0c;&#x7528;&#x6237;&#x5fc5;&#x987b;&#x81ea;&#x5df1;&#x7f16;&#x5199;&#x4e3b;&#x51fd;&#x6570;&#x6ce8;&#x518c;&#x8fd9;&#x4e9b;&#x7ec4;&#x4ef6;&#xff0c;&#x8ddf;Hadoop&#x7684;&#x4e3b;&#x51fd;&#x6570;&#x7c7b;&#x4f3c;&#x3002;&#x4e00;&#x822c;&#x5730;&#xff0c;&#x4e3b;&#x51fd;&#x6570;&#x5e94;&#x8be5;</p>
+
+<ul>
+  
+<li>&#x521d;&#x59cb;&#x5316;SINGA&#xff0c;&#x5982;&#xff1a;&#x8bbe;&#x7f6e;&#x65e5;&#x5fd7;&#xff1b;</li>
+  
+<li>&#x6ce8;&#x518c;&#x7528;&#x6237;&#x81ea;&#x5b9a;&#x4e49;&#x7ec4;&#x4ef6;&#xff1b;</li>
+  
+<li>&#x521b;&#x5efa;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x5e76;&#x4f20;&#x9012;&#x7ed9;SINGA
 driver&#x3002;</li>
+</ul>
+<p>&#x4e3b;&#x51fd;&#x6570;&#x793a;&#x4f8b;</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">#include &quot;singa.h&quot;
+#include &quot;user.h&quot;  // header for user code
+
+int main(int argc, char** argv) {
+  singa::Driver driver;
+  driver.Init(argc, argv);
+  bool resume;
+  // parse resume option from argv.
+
+  // register user defined layers
+  driver.RegisterLayer&lt;FooLayer&gt;(kFooLayer);
+  // register user defined updater
+  driver.RegisterUpdater&lt;FooUpdater&gt;(kFooUpdater);
+  ...
+  auto jobConf = driver.job_conf();
+  //  update jobConf
+
+  driver.Train(resume, jobConf);
+  return 0;
+}
+</pre></div></div>
+<p>driver &#x7c7b;&#x2019; <tt>Init</tt> 
&#x65b9;&#x6cd5;&#x52a0;&#x8f7d;&#x7528;&#x6237;&#x5728;&#x547d;&#x4ee4;&#x884c;&#x53c2;&#x6570;&#x4e2d;
 &#xff08;<tt>-conf &lt;job 
conf&gt;</tt>&#xff09;&#x63d0;&#x4f9b;&#x7684;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x6587;&#x4ef6;&#xff08;&#x81f3;&#x5c11;&#x5305;&#x542b;&#x96c6;&#x7fa4;&#x62d3;&#x6251;&#x7ed3;&#x6784;&#xff09;&#xff0c;&#x5e76;&#x8fd4;&#x56de;<tt>jobConf</tt>&#x7ed9;&#x7528;&#x6237;&#xff0c;&#x7528;&#x6237;&#x53ef;&#x66f4;&#x65b0;&#x548c;&#x6dfb;&#x52a0;&#x795e;&#x7ecf;&#x7f51;&#x7edc;&#x6216;&#x8005;Updater&#x7684;&#x914d;&#x7f6e;&#x3002;&#x5982;&#x679c;&#x5b9a;&#x4e49;&#x4e86;Layer&#x3001;Updater&#x3001;Worker&#x6216;&#x8005;Param&#x7684;&#x5b50;&#x7c7b;&#xff0c;&#x7528;&#x6237;&#x9700;&#x8981;&#x901a;&#x8fc7;driver&#x4e3a;&#x5b83;&#x4eec;&#x6ce8;&#x518c;&#x3002;&#x6700;&#x540e;&#xff0c;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x4f1a;&#x88ab;&#x63d0;&#x4ea4;&#x5230;driver&#xff0c;&#x7531;driver&#x542f;&#x52a8;&#x8bad;&#x7ec3;&#x3002;</p>
+<p>&#x5c06;&#x6765;&#x6211;&#x4eec;&#x4f1a;&#x63d0;&#x4f9b;&#x7c7b;&#x4f3c;<a 
class="externalLink" href="https://github.com/fchollet/keras";>keras</a> 
&#x7684;&#x5e2e;&#x52a9;&#x5de5;&#x5177;&#xff0c;&#x4f7f;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x66f4;&#x52a0;&#x7b80;&#x5355;&#x3002;</p>
+<p>&#x7528;&#x6237;&#x9700;&#x8981;&#x4f7f;&#x7528;SINGA&#x5e93;(<i>.libs/libsinga.so</i>)&#x7f16;&#x8bd1;&#x548c;&#x94fe;&#x63a5;&#x81ea;&#x5df1;&#x7684;&#x4ee3;&#x7801;&#xff08;&#x5982;&#xff1a;layer&#x7684;&#x5b9e;&#x73b0;&#x548c;&#x4e3b;&#x51fd;&#x6570;&#xff09;&#xff0c;&#x5f97;&#x5230;&#x53ef;&#x6267;&#x884c;&#x6587;&#x4ef6;&#xff0c;&#x5982;&#x540d;&#x4e3a;<i>mysinga</i>
 
&#x7684;&#x6587;&#x4ef6;&#x3002;&#x6267;&#x884c;&#x4ee5;&#x4e0b;&#x547d;&#x4ee4;&#x542f;&#x52a8;&#x8be5;&#x7a0b;&#x5e8f;&#xff0c;&#x7528;&#x6237;&#x9700;&#x8981;&#x5c06;<i>mysinga</i>
 
&#x548c;&#x4f5c;&#x4e1a;&#x914d;&#x7f6e;&#x6587;&#x4ef6;&#x7684;&#x8def;&#x5f84;&#x4f20;&#x7ed9;
 <i>./bin/singa-run.sh</i> &#x3002;</p>
+
+<div class="source">
+<div class="source"><pre class="prettyprint">./bin/singa-run.sh -conf &lt;path 
to job conf&gt; -exec &lt;path to mysinga&gt; [other arguments]
+</pre></div></div>
+<p><a href="rnn.html">RNN application</a> 
&#x63d0;&#x4f9b;&#x4e86;&#x4e00;&#x4e2a;&#x5b8c;&#x6574;&#x7684;&#x5b9e;&#x73b0;&#x4e3b;&#x51fd;&#x6570;&#x8bad;&#x7ec3;&#x7279;&#x5b9a;RNN&#x6a21;&#x578b;&#x7684;&#x4f8b;&#x5b50;&#x3002;</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+                      <div class="row-fluid">
+                                                                          
+<p>Copyright © 2015 The Apache Software Foundation. All rights reserved. 
Apache Singa, Apache, the Apache feather logo, and the Apache Singa project 
logos are trademarks of The Apache Software Foundation. All other marks 
mentioned may be trademarks or registered trademarks of their respective 
owners.</p>
+                          </div>
+
+        
+                </div>
+    </footer>
+        </body>
+</html>


Reply via email to