Modified: incubator/singa/site/trunk/en/docs/metric.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/metric.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/metric.html (original)
+++ incubator/singa/site/trunk/en/docs/metric.html Tue May  8 15:05:16 2018
@@ -14,30 +14,24 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../genindex.html"/>
-        <link rel="search" title="Search" href="../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../index.html"/>
-        <link rel="up" title="Documentation" href="index.html"/>
-        <link rel="next" title="Optimizer" href="optimizer.html"/>
-        <link rel="prev" title="Loss" href="loss.html"/>
+    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
+    <link rel="index" title="Index" href="../genindex.html" />
+    <link rel="search" title="Search" href="../search.html" />
+    <link rel="next" title="Optimizer" href="optimizer.html" />
+    <link rel="prev" title="Loss" href="loss.html" />
     <link href="../_static/style.css" rel="stylesheet" type="text/css">
 
 
@@ -46,8 +40,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -62,7 +57,7 @@
 
           
             
-            <img src="../_static/singa.png" class="logo" />
+            <img src="../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -91,7 +86,10 @@
           
             
             
-                <ul class="current">
+              
+            
+            
+              <ul class="current">
 <li class="toctree-l1"><a class="reference internal" 
href="../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1 current"><a class="reference internal" 
href="index.html">Documentation</a><ul class="current">
 <li class="toctree-l2"><a class="reference internal" 
href="installation.html">Installation</a></li>
@@ -137,131 +135,75 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../index.html">Docs</a> &raquo;</li>
-      
+    
+      <li><a href="../index.html">Docs</a> &raquo;</li>
+        
           <li><a href="index.html">Documentation</a> &raquo;</li>
-      
-    <li>Metric</li>
+        
+      <li>Metric</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
            <div itemprop="articleBody">
             
-  <div class="section" id="module-singa.metric">
-<span id="metric"></span><h1>Metric<a class="headerlink" 
href="#module-singa.metric" title="Permalink to this headline">¶</a></h1>
-<p>This module includes a set of metric classes for evaluating the 
model&#8217;s
-performance. The specific metric classes could be converted from C++
-implmentation or implemented directly using Python.</p>
-<p>Example usage:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="kn">from</span> <span class="nn">singa</span> <span 
class="k">import</span> <span class="n">tensor</span>
-<span class="kn">from</span> <span class="nn">singa</span> <span 
class="k">import</span> <span class="n">metric</span>
-
-<span class="n">x</span> <span class="o">=</span> <span 
class="n">tensor</span><span class="o">.</span><span 
class="n">Tensor</span><span class="p">((</span><span class="mi">3</span><span 
class="p">,</span> <span class="mi">5</span><span class="p">))</span>
-<span class="n">x</span><span class="o">.</span><span 
class="n">uniform</span><span class="p">(</span><span class="mi">0</span><span 
class="p">,</span> <span class="mi">1</span><span class="p">)</span>  <span 
class="c1"># randomly genearte the prediction activation</span>
-<span class="n">x</span> <span class="o">=</span> <span 
class="n">tensor</span><span class="o">.</span><span 
class="n">SoftMax</span><span class="p">(</span><span class="n">x</span><span 
class="p">)</span>  <span class="c1"># normalize the prediction into 
probabilities</span>
-<span class="n">y</span> <span class="o">=</span> <span 
class="n">tensor</span><span class="o">.</span><span 
class="n">from_numpy</span><span class="p">(</span><span 
class="n">np</span><span class="o">.</span><span class="n">array</span><span 
class="p">([</span><span class="mi">0</span><span class="p">,</span> <span 
class="mi">1</span><span class="p">,</span> <span class="mi">3</span><span 
class="p">],</span> <span class="n">dtype</span><span class="o">=</span><span 
class="n">np</span><span class="o">.</span><span class="n">int</span><span 
class="p">))</span>  <span class="c1"># set the truth</span>
-
-<span class="n">f</span> <span class="o">=</span> <span 
class="n">metric</span><span class="o">.</span><span 
class="n">Accuracy</span><span class="p">()</span>
-<span class="n">acc</span> <span class="o">=</span> <span 
class="n">f</span><span class="o">.</span><span class="n">evaluate</span><span 
class="p">(</span><span class="n">x</span><span class="p">,</span> <span 
class="n">y</span><span class="p">)</span>  <span class="c1"># averaged 
accuracy over all 3 samples in x</span>
-</pre></div>
-</div>
-<dl class="class">
-<dt id="singa.metric.Metric">
-<em class="property">class </em><code 
class="descclassname">singa.metric.</code><code 
class="descname">Metric</code><a class="headerlink" href="#singa.metric.Metric" 
title="Permalink to this definition">¶</a></dt>
-<dd><p>Bases: <code class="xref py py-class docutils literal"><span 
class="pre">object</span></code></p>
-<p>Base metric class.</p>
-<p>Subclasses that wrap the C++ loss classes can use the inherited foward,
-and evaluate functions of this base class. Other subclasses need
-to override these functions. Users need to feed in the 
<strong>predictions</strong> and
-ground truth to get the metric values.</p>
-<dl class="method">
-<dt id="singa.metric.Metric.forward">
-<code class="descname">forward</code><span 
class="sig-paren">(</span><em>x</em>, <em>y</em><span 
class="sig-paren">)</span><a class="headerlink" 
href="#singa.metric.Metric.forward" title="Permalink to this 
definition">¶</a></dt>
-<dd><p>Compute the metric for each sample.</p>
-<table class="docutils field-list" frame="void" rules="none">
-<col class="field-name" />
-<col class="field-body" />
-<tbody valign="top">
-<tr class="field-odd field"><th class="field-name">Parameters:</th><td 
class="field-body"><ul class="first simple">
-<li><strong>x</strong> (<a class="reference internal" 
href="tensor.html#singa.tensor.Tensor" 
title="singa.tensor.Tensor"><em>Tensor</em></a>) &#8211; predictions, one row 
per sample</li>
-<li><strong>y</strong> (<a class="reference internal" 
href="tensor.html#singa.tensor.Tensor" 
title="singa.tensor.Tensor"><em>Tensor</em></a>) &#8211; ground truth values, 
one row per sample</li>
-</ul>
-</td>
-</tr>
-<tr class="field-even field"><th class="field-name">Returns:</th><td 
class="field-body"><p class="first last">a tensor of floats, one per sample</p>
-</td>
-</tr>
-</tbody>
-</table>
-</dd></dl>
-
-<dl class="method">
-<dt id="singa.metric.Metric.evaluate">
-<code class="descname">evaluate</code><span 
class="sig-paren">(</span><em>x</em>, <em>y</em><span 
class="sig-paren">)</span><a class="headerlink" 
href="#singa.metric.Metric.evaluate" title="Permalink to this 
definition">¶</a></dt>
-<dd><p>Compute the averaged metric over all samples.</p>
-<table class="docutils field-list" frame="void" rules="none">
-<col class="field-name" />
-<col class="field-body" />
-<tbody valign="top">
-<tr class="field-odd field"><th class="field-name">Parameters:</th><td 
class="field-body"><ul class="first simple">
-<li><strong>x</strong> (<a class="reference internal" 
href="tensor.html#singa.tensor.Tensor" 
title="singa.tensor.Tensor"><em>Tensor</em></a>) &#8211; predictions, one row 
per sample</li>
-<li><strong>y</strong> (<a class="reference internal" 
href="tensor.html#singa.tensor.Tensor" 
title="singa.tensor.Tensor"><em>Tensor</em></a>) &#8211; ground truth values, 
one row per sample</li>
-</ul>
-</td>
-</tr>
-<tr class="field-even field"><th class="field-name">Returns:</th><td 
class="field-body"><p class="first last">a float value for the averaged 
metric</p>
-</td>
-</tr>
-</tbody>
-</table>
-</dd></dl>
-
-</dd></dl>
-
-<dl class="class">
-<dt id="singa.metric.Accuracy">
-<em class="property">class </em><code 
class="descclassname">singa.metric.</code><code 
class="descname">Accuracy</code><a class="headerlink" 
href="#singa.metric.Accuracy" title="Permalink to this definition">¶</a></dt>
-<dd><p>Bases: <a class="reference internal" href="#singa.metric.Metric" 
title="singa.metric.Metric"><code class="xref py py-class docutils 
literal"><span class="pre">singa.metric.Metric</span></code></a></p>
-<p>Compute the top one accuracy for singel label prediction tasks.</p>
-<p>It calls the C++ functions to do the calculation.</p>
-</dd></dl>
-
+  <div class="section" id="metric">
+<h1>Metric<a class="headerlink" href="#metric" title="Permalink to this 
headline">¶</a></h1>
 </div>
 
 
            </div>
+           
           </div>
           <footer>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
       
-        <a href="optimizer.html" class="btn btn-neutral float-right" 
title="Optimizer" accesskey="n">Next <span class="fa 
fa-arrow-circle-right"></span></a>
+        <a href="optimizer.html" class="btn btn-neutral float-right" 
title="Optimizer" accesskey="n" rel="next">Next <span class="fa 
fa-arrow-circle-right"></span></a>
       
       
-        <a href="loss.html" class="btn btn-neutral" title="Loss" 
accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="loss.html" class="btn btn-neutral" title="Loss" accesskey="p" 
rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
@@ -270,11 +212,11 @@ ground truth to get the metric values.</
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -293,9 +235,11 @@ ground truth to get the metric values.</
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" src="../_static/jquery.js"></script>
@@ -309,14 +253,13 @@ ground truth to get the metric values.</
     <script type="text/javascript" src="../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Modified: incubator/singa/site/trunk/en/docs/model_zoo/caffe/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/caffe/README.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/caffe/README.html (original)
+++ incubator/singa/site/trunk/en/docs/model_zoo/caffe/README.html Tue May  8 
15:05:16 2018
@@ -14,27 +14,22 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../../../genindex.html"/>
-        <link rel="search" title="Search" href="../../../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../../../index.html"/>
+    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" 
/>
+    <link rel="index" title="Index" href="../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../search.html" />
     <link href="../../../_static/style.css" rel="stylesheet" type="text/css">
 
 
@@ -43,8 +38,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -59,7 +55,7 @@
 
           
             
-            <img src="../../../_static/singa.png" class="logo" />
+            <img src="../../../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -88,7 +84,10 @@
           
             
             
-                <ul>
+              
+            
+            
+              <ul>
 <li class="toctree-l1"><a class="reference internal" 
href="../../../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1"><a class="reference internal" 
href="../../index.html">Documentation</a></li>
 </ul>
@@ -116,32 +115,52 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../../../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../../../index.html">Docs</a> &raquo;</li>
-      
-    <li>Use parameters pre-trained from Caffe in SINGA</li>
+    
+      <li><a href="../../../index.html">Docs</a> &raquo;</li>
+        
+      <li>Use parameters pre-trained from Caffe in SINGA</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
@@ -152,7 +171,7 @@
 <p>In this example, we use SINGA to load the VGG parameters trained by Caffe 
to do image classification.</p>
 <div class="section" id="run-this-example">
 <span id="run-this-example"></span><h2>Run this example<a class="headerlink" 
href="#run-this-example" title="Permalink to this headline">¶</a></h2>
-<p>You can run this example by simply executing <code class="docutils 
literal"><span class="pre">run.sh</span> <span class="pre">vgg16</span></code> 
or <code class="docutils literal"><span class="pre">run.sh</span> <span 
class="pre">vgg19</span></code>
+<p>You can run this example by simply executing <code class="docutils literal 
notranslate"><span class="pre">run.sh</span> <span 
class="pre">vgg16</span></code> or <code class="docutils literal 
notranslate"><span class="pre">run.sh</span> <span 
class="pre">vgg19</span></code>
 The script does the following work.</p>
 <div class="section" id="obtain-the-caffe-model">
 <span id="obtain-the-caffe-model"></span><h3>Obtain the Caffe model<a 
class="headerlink" href="#obtain-the-caffe-model" title="Permalink to this 
headline">¶</a></h3>
@@ -167,17 +186,17 @@ binary file.</li>
 </div>
 <div class="section" id="prepare-test-images">
 <span id="prepare-test-images"></span><h3>Prepare test images<a 
class="headerlink" href="#prepare-test-images" title="Permalink to this 
headline">¶</a></h3>
-<p>A few sample images are downloaded into the <code class="docutils 
literal"><span class="pre">test</span></code> folder.</p>
+<p>A few sample images are downloaded into the <code class="docutils literal 
notranslate"><span class="pre">test</span></code> folder.</p>
 </div>
 <div class="section" id="predict">
 <span id="predict"></span><h3>Predict<a class="headerlink" href="#predict" 
title="Permalink to this headline">¶</a></h3>
-<p>The <code class="docutils literal"><span 
class="pre">predict.py</span></code> script creates the VGG model and read the 
parameters,</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="n">usage</span><span class="p">:</span> <span 
class="n">predict</span><span class="o">.</span><span class="n">py</span> <span 
class="p">[</span><span class="o">-</span><span class="n">h</span><span 
class="p">]</span> <span class="n">model_txt</span> <span 
class="n">model_bin</span> <span class="n">imgclass</span>
+<p>The <code class="docutils literal notranslate"><span 
class="pre">predict.py</span></code> script creates the VGG model and read the 
parameters,</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span><span class="n">usage</span><span 
class="p">:</span> <span class="n">predict</span><span class="o">.</span><span 
class="n">py</span> <span class="p">[</span><span class="o">-</span><span 
class="n">h</span><span class="p">]</span> <span class="n">model_txt</span> 
<span class="n">model_bin</span> <span class="n">imgclass</span>
 </pre></div>
 </div>
-<p>where <code class="docutils literal"><span 
class="pre">imgclass</span></code> refers to the synsets of imagenet dataset 
for vgg models.
+<p>where <code class="docutils literal notranslate"><span 
class="pre">imgclass</span></code> refers to the synsets of imagenet dataset 
for vgg models.
 You can start the prediction program by executing the following command:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="n">python</span> <span class="n">predict</span><span 
class="o">.</span><span class="n">py</span> <span class="n">vgg16</span><span 
class="o">.</span><span class="n">prototxt</span> <span 
class="n">vgg16</span><span class="o">.</span><span class="n">caffemodel</span> 
<span class="n">synset_words</span><span class="o">.</span><span 
class="n">txt</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span><span class="n">python</span> <span 
class="n">predict</span><span class="o">.</span><span class="n">py</span> <span 
class="n">vgg16</span><span class="o">.</span><span class="n">prototxt</span> 
<span class="n">vgg16</span><span class="o">.</span><span 
class="n">caffemodel</span> <span class="n">synset_words</span><span 
class="o">.</span><span class="n">txt</span>
 </pre></div>
 </div>
 <p>Then you type in the image path, and the program would output the top-5 
labels.</p>
@@ -188,6 +207,7 @@ You can start the prediction program by
 
 
            </div>
+           
           </div>
           <footer>
   
@@ -196,11 +216,11 @@ You can start the prediction program by
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -219,9 +239,11 @@ You can start the prediction program by
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../../../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" src="../../../_static/jquery.js"></script>
@@ -235,14 +257,13 @@ You can start the prediction program by
     <script type="text/javascript" src="../../../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Modified: incubator/singa/site/trunk/en/docs/model_zoo/char-rnn/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/char-rnn/README.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/char-rnn/README.html (original)
+++ incubator/singa/site/trunk/en/docs/model_zoo/char-rnn/README.html Tue May  
8 15:05:16 2018
@@ -14,30 +14,24 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../../../genindex.html"/>
-        <link rel="search" title="Search" href="../../../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../../../index.html"/>
-        <link rel="up" title="Model Zoo" href="../index.html"/>
-        <link rel="next" title="Train AlexNet over ImageNet" 
href="../imagenet/alexnet/README.html"/>
-        <link rel="prev" title="Train CNN over Cifar-10" 
href="../cifar10/README.html"/>
+    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" 
/>
+    <link rel="index" title="Index" href="../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../search.html" />
+    <link rel="next" title="Train AlexNet over ImageNet" 
href="../imagenet/alexnet/README.html" />
+    <link rel="prev" title="Train CNN over Cifar-10" 
href="../cifar10/README.html" />
     <link href="../../../_static/style.css" rel="stylesheet" type="text/css">
 
 
@@ -46,8 +40,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -62,7 +57,7 @@
 
           
             
-            <img src="../../../_static/singa.png" class="logo" />
+            <img src="../../../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -91,7 +86,10 @@
           
             
             
-                <ul class="current">
+              
+            
+            
+              <ul class="current">
 <li class="toctree-l1"><a class="reference internal" 
href="../../../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1 current"><a class="reference internal" 
href="../../index.html">Documentation</a><ul class="current">
 <li class="toctree-l2"><a class="reference internal" 
href="../../installation.html">Installation</a></li>
@@ -146,36 +144,56 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../../../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../../../index.html">Docs</a> &raquo;</li>
-      
+    
+      <li><a href="../../../index.html">Docs</a> &raquo;</li>
+        
           <li><a href="../../index.html">Documentation</a> &raquo;</li>
-      
+        
           <li><a href="../index.html">Model Zoo</a> &raquo;</li>
-      
-    <li>Train Char-RNN over plain text</li>
+        
+      <li>Train Char-RNN over plain text</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
@@ -185,7 +203,7 @@
 <span id="train-char-rnn-over-plain-text"></span><h1>Train Char-RNN over plain 
text<a class="headerlink" href="#train-char-rnn-over-plain-text" 
title="Permalink to this headline">¶</a></h1>
 <p>Recurrent neural networks (RNN) are widely used for modelling sequential 
data,
 e.g., natural language sentences. This example describes how to implement a RNN
-application (or model) using SINGA&#8217;s RNN layers.
+application (or model) using SINGA’s RNN layers.
 We will use the <a class="reference external" 
href="https://github.com/karpathy/char-rnn";>char-rnn</a> model as an
 example, which trains over sentences or
 source code, with each character as an input unit. Particularly, we will train
@@ -200,19 +218,19 @@ generate meaningful code from the model.
 Other plain text files can also be used.</p>
 </li>
 <li><p class="first">Start the training,</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  
<span class="n">python</span> <span class="n">train</span><span 
class="o">.</span><span class="n">py</span> <span 
class="n">linux_input</span><span class="o">.</span><span class="n">txt</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  <span class="n">python</span> <span 
class="n">train</span><span class="o">.</span><span class="n">py</span> <span 
class="n">linux_input</span><span class="o">.</span><span class="n">txt</span>
 </pre></div>
 </div>
 <p>Some hyper-parameters could be set through command line,</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  
<span class="n">python</span> <span class="n">train</span><span 
class="o">.</span><span class="n">py</span> <span class="o">-</span><span 
class="n">h</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  <span class="n">python</span> <span 
class="n">train</span><span class="o">.</span><span class="n">py</span> <span 
class="o">-</span><span class="n">h</span>
 </pre></div>
 </div>
 </li>
 <li><p class="first">Sample characters from the model by providing the number 
of characters to sample and the seed string.</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  
<span class="n">python</span> <span class="n">sample</span><span 
class="o">.</span><span class="n">py</span> <span 
class="s1">&#39;model.bin&#39;</span> <span class="mi">100</span> <span 
class="o">--</span><span class="n">seed</span> <span class="s1">&#39;#include 
&lt;std&#39;</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  <span class="n">python</span> <span 
class="n">sample</span><span class="o">.</span><span class="n">py</span> <span 
class="s1">&#39;model.bin&#39;</span> <span class="mi">100</span> <span 
class="o">--</span><span class="n">seed</span> <span class="s1">&#39;#include 
&lt;std&#39;</span>
 </pre></div>
 </div>
-<p>Please replace &#8216;model.bin&#8217; with the path to one of the 
checkpoint paths.</p>
+<p>Please replace ‘model.bin’ with the path to one of the checkpoint 
paths.</p>
 </li>
 </ul>
 </div>
@@ -220,15 +238,16 @@ Other plain text files can also be used.
 
 
            </div>
+           
           </div>
           <footer>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
       
-        <a href="../imagenet/alexnet/README.html" class="btn btn-neutral 
float-right" title="Train AlexNet over ImageNet" accesskey="n">Next <span 
class="fa fa-arrow-circle-right"></span></a>
+        <a href="../imagenet/alexnet/README.html" class="btn btn-neutral 
float-right" title="Train AlexNet over ImageNet" accesskey="n" rel="next">Next 
<span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="../cifar10/README.html" class="btn btn-neutral" title="Train 
CNN over Cifar-10" accesskey="p"><span class="fa fa-arrow-circle-left"></span> 
Previous</a>
+        <a href="../cifar10/README.html" class="btn btn-neutral" title="Train 
CNN over Cifar-10" accesskey="p" rel="prev"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
@@ -237,11 +256,11 @@ Other plain text files can also be used.
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -260,9 +279,11 @@ Other plain text files can also be used.
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../../../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" src="../../../_static/jquery.js"></script>
@@ -276,14 +297,13 @@ Other plain text files can also be used.
     <script type="text/javascript" src="../../../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Modified: incubator/singa/site/trunk/en/docs/model_zoo/cifar10/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/cifar10/README.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/cifar10/README.html (original)
+++ incubator/singa/site/trunk/en/docs/model_zoo/cifar10/README.html Tue May  8 
15:05:16 2018
@@ -14,30 +14,24 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../../../genindex.html"/>
-        <link rel="search" title="Search" href="../../../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../../../index.html"/>
-        <link rel="up" title="Model Zoo" href="../index.html"/>
-        <link rel="next" title="Train Char-RNN over plain text" 
href="../char-rnn/README.html"/>
-        <link rel="prev" title="Model Zoo" href="../index.html"/>
+    <link rel="stylesheet" href="../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" 
/>
+    <link rel="index" title="Index" href="../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../search.html" />
+    <link rel="next" title="Train Char-RNN over plain text" 
href="../char-rnn/README.html" />
+    <link rel="prev" title="Model Zoo" href="../index.html" />
     <link href="../../../_static/style.css" rel="stylesheet" type="text/css">
 
 
@@ -46,8 +40,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -62,7 +57,7 @@
 
           
             
-            <img src="../../../_static/singa.png" class="logo" />
+            <img src="../../../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -91,7 +86,10 @@
           
             
             
-                <ul class="current">
+              
+            
+            
+              <ul class="current">
 <li class="toctree-l1"><a class="reference internal" 
href="../../../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1 current"><a class="reference internal" 
href="../../index.html">Documentation</a><ul class="current">
 <li class="toctree-l2"><a class="reference internal" 
href="../../installation.html">Installation</a></li>
@@ -146,36 +144,56 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../../../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../../../index.html">Docs</a> &raquo;</li>
-      
+    
+      <li><a href="../../../index.html">Docs</a> &raquo;</li>
+        
           <li><a href="../../index.html">Documentation</a> &raquo;</li>
-      
+        
           <li><a href="../index.html">Model Zoo</a> &raquo;</li>
-      
-    <li>Train CNN over Cifar-10</li>
+        
+      <li>Train CNN over Cifar-10</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
@@ -204,11 +222,11 @@ are required. Please refer to the instal
 <div class="section" id="data-preparation">
 <span id="data-preparation"></span><h3>Data preparation<a class="headerlink" 
href="#data-preparation" title="Permalink to this headline">¶</a></h3>
 <p>The binary Cifar-10 dataset could be downloaded by</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="n">python</span> <span class="n">download_data</span><span 
class="o">.</span><span class="n">py</span> <span class="nb">bin</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span><span class="n">python</span> <span 
class="n">download_data</span><span class="o">.</span><span class="n">py</span> 
<span class="nb">bin</span>
 </pre></div>
 </div>
 <p>The Python version could be downloaded by</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="n">python</span> <span class="n">download_data</span><span 
class="o">.</span><span class="n">py</span> <span class="n">py</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span><span class="n">python</span> <span 
class="n">download_data</span><span class="o">.</span><span class="n">py</span> 
<span class="n">py</span>
 </pre></div>
 </div>
 </div>
@@ -217,27 +235,27 @@ are required. Please refer to the instal
 <p>There are four training programs</p>
 <ol>
 <li><p class="first">train.py. The following command would train the VGG model 
using the python
-version of the Cifar-10 dataset in &#8216;cifar-10-batches-py&#8217; 
folder.</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span> <span 
class="n">python</span> <span class="n">train</span><span 
class="o">.</span><span class="n">py</span> <span class="n">vgg</span> <span 
class="n">cifar</span><span class="o">-</span><span class="mi">10</span><span 
class="o">-</span><span class="n">batches</span><span class="o">-</span><span 
class="n">py</span>
+version of the Cifar-10 dataset in ‘cifar-10-batches-py’ folder.</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span> <span class="n">python</span> <span 
class="n">train</span><span class="o">.</span><span class="n">py</span> <span 
class="n">vgg</span> <span class="n">cifar</span><span class="o">-</span><span 
class="mi">10</span><span class="o">-</span><span class="n">batches</span><span 
class="o">-</span><span class="n">py</span>
 </pre></div>
 </div>
-<p>To train other models, please replace &#8216;vgg&#8217; to 
&#8216;alexnet&#8217;, &#8216;resnet&#8217; or &#8216;caffe&#8217;,
-where &#8216;caffe&#8217; refers to the alexnet model converted from Caffe. By 
default
+<p>To train other models, please replace ‘vgg’ to ‘alexnet’, 
‘resnet’ or ‘caffe’,
+where ‘caffe’ refers to the alexnet model converted from Caffe. By default
 the training would run on a CudaGPU device, to run it on CppCPU, add an 
additional
 argument</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span> <span 
class="n">python</span> <span class="n">train</span><span 
class="o">.</span><span class="n">py</span> <span class="n">vgg</span> <span 
class="n">cifar</span><span class="o">-</span><span class="mi">10</span><span 
class="o">-</span><span class="n">batches</span><span class="o">-</span><span 
class="n">py</span>  <span class="o">--</span><span class="n">use_cpu</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span> <span class="n">python</span> <span 
class="n">train</span><span class="o">.</span><span class="n">py</span> <span 
class="n">vgg</span> <span class="n">cifar</span><span class="o">-</span><span 
class="mi">10</span><span class="o">-</span><span class="n">batches</span><span 
class="o">-</span><span class="n">py</span>  <span class="o">--</span><span 
class="n">use_cpu</span>
 </pre></div>
 </div>
 </li>
 <li><p class="first">alexnet.cc. It trains the AlexNet model using the CPP 
APIs on a CudaGPU,</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span> <span 
class="o">./</span><span class="n">run</span><span class="o">.</span><span 
class="n">sh</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span> <span class="o">./</span><span 
class="n">run</span><span class="o">.</span><span class="n">sh</span>
 </pre></div>
 </div>
 </li>
 <li><p class="first">alexnet-parallel.cc. It trains the AlexNet model using 
the CPP APIs on two CudaGPU devices.
 The two devices run synchronously to compute the gradients of the mode 
parameters, which are
 averaged on the host CPU device and then be applied to update the 
parameters.</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span> <span 
class="o">./</span><span class="n">run</span><span class="o">-</span><span 
class="n">parallel</span><span class="o">.</span><span class="n">sh</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span> <span class="o">./</span><span 
class="n">run</span><span class="o">-</span><span 
class="n">parallel</span><span class="o">.</span><span class="n">sh</span>
 </pre></div>
 </div>
 </li>
@@ -248,15 +266,15 @@ averaged on the host CPU device and then
 <div class="section" id="prediction">
 <span id="prediction"></span><h3>Prediction<a class="headerlink" 
href="#prediction" title="Permalink to this headline">¶</a></h3>
 <p>predict.py includes the prediction function</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>    
<span class="k">def</span> <span class="nf">predict</span><span 
class="p">(</span><span class="n">net</span><span class="p">,</span> <span 
class="n">images</span><span class="p">,</span> <span class="n">dev</span><span 
class="p">,</span> <span class="n">topk</span><span class="o">=</span><span 
class="mi">5</span><span class="p">)</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>    <span class="k">def</span> <span 
class="nf">predict</span><span class="p">(</span><span 
class="n">net</span><span class="p">,</span> <span class="n">images</span><span 
class="p">,</span> <span class="n">dev</span><span class="p">,</span> <span 
class="n">topk</span><span class="o">=</span><span class="mi">5</span><span 
class="p">)</span>
 </pre></div>
 </div>
 <p>The net is created by loading the previously trained model; Images consist 
of
 a numpy array of images (one row per image); dev is the training device, e.g.,
 a CudaGPU device or the host CppCPU device; It returns the topk labels for 
each instance.</p>
-<p>The predict.py file&#8217;s main function provides an example of using the 
pre-trained alexnet model to do prediction for new images.
-The &#8216;model.bin&#8217; file generated by the training program should be 
placed at the cifar10 folder to run</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>    
<span class="n">python</span> <span class="n">predict</span><span 
class="o">.</span><span class="n">py</span>
+<p>The predict.py file’s main function provides an example of using the 
pre-trained alexnet model to do prediction for new images.
+The ‘model.bin’ file generated by the training program should be placed at 
the cifar10 folder to run</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>    <span class="n">python</span> <span 
class="n">predict</span><span class="o">.</span><span class="n">py</span>
 </pre></div>
 </div>
 </div>
@@ -265,15 +283,16 @@ The &#8216;model.bin&#8217; file generat
 
 
            </div>
+           
           </div>
           <footer>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
       
-        <a href="../char-rnn/README.html" class="btn btn-neutral float-right" 
title="Train Char-RNN over plain text" accesskey="n">Next <span class="fa 
fa-arrow-circle-right"></span></a>
+        <a href="../char-rnn/README.html" class="btn btn-neutral float-right" 
title="Train Char-RNN over plain text" accesskey="n" rel="next">Next <span 
class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="../index.html" class="btn btn-neutral" title="Model Zoo" 
accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="../index.html" class="btn btn-neutral" title="Model Zoo" 
accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> 
Previous</a>
       
     </div>
   
@@ -282,11 +301,11 @@ The &#8216;model.bin&#8217; file generat
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -305,9 +324,11 @@ The &#8216;model.bin&#8217; file generat
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../../../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" src="../../../_static/jquery.js"></script>
@@ -321,14 +342,13 @@ The &#8216;model.bin&#8217; file generat
     <script type="text/javascript" src="../../../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Modified: 
incubator/singa/site/trunk/en/docs/model_zoo/imagenet/alexnet/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/imagenet/alexnet/README.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/imagenet/alexnet/README.html 
(original)
+++ incubator/singa/site/trunk/en/docs/model_zoo/imagenet/alexnet/README.html 
Tue May  8 15:05:16 2018
@@ -14,30 +14,24 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../../../../_static/css/theme.css" 
type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../../../../genindex.html"/>
-        <link rel="search" title="Search" href="../../../../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../../../../index.html"/>
-        <link rel="up" title="Model Zoo" href="../../index.html"/>
-        <link rel="next" title="Image Classification using GoogleNet" 
href="../googlenet/README.html"/>
-        <link rel="prev" title="Train Char-RNN over plain text" 
href="../../char-rnn/README.html"/>
+    <link rel="stylesheet" href="../../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../../_static/pygments.css" 
type="text/css" />
+    <link rel="index" title="Index" href="../../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../../search.html" />
+    <link rel="next" title="Image Classification using GoogleNet" 
href="../googlenet/README.html" />
+    <link rel="prev" title="Train Char-RNN over plain text" 
href="../../char-rnn/README.html" />
     <link href="../../../../_static/style.css" rel="stylesheet" 
type="text/css">
 
 
@@ -46,8 +40,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -62,7 +57,7 @@
 
           
             
-            <img src="../../../../_static/singa.png" class="logo" />
+            <img src="../../../../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -91,7 +86,10 @@
           
             
             
-                <ul class="current">
+              
+            
+            
+              <ul class="current">
 <li class="toctree-l1"><a class="reference internal" 
href="../../../../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1 current"><a class="reference internal" 
href="../../../index.html">Documentation</a><ul class="current">
 <li class="toctree-l2"><a class="reference internal" 
href="../../../installation.html">Installation</a></li>
@@ -146,36 +144,56 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../../../../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../../../../index.html">Docs</a> &raquo;</li>
-      
+    
+      <li><a href="../../../../index.html">Docs</a> &raquo;</li>
+        
           <li><a href="../../../index.html">Documentation</a> &raquo;</li>
-      
+        
           <li><a href="../../index.html">Model Zoo</a> &raquo;</li>
-      
-    <li>Train AlexNet over ImageNet</li>
+        
+      <li>Train AlexNet over ImageNet</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
@@ -192,7 +210,7 @@ to do image classification against the I
 <div class="section" id="compile-singa">
 <span id="compile-singa"></span><h3>Compile SINGA<a class="headerlink" 
href="#compile-singa" title="Permalink to this headline">¶</a></h3>
 <p>Please compile SINGA with CUDA, CUDNN and OpenCV. You can manually turn on 
the
-options in CMakeLists.txt or run <code class="docutils literal"><span 
class="pre">ccmake</span> <span class="pre">..</span></code> in build/ 
folder.</p>
+options in CMakeLists.txt or run <code class="docutils literal 
notranslate"><span class="pre">ccmake</span> <span class="pre">..</span></code> 
in build/ folder.</p>
 <p>We have tested CUDNN V4 and V5 (V5 requires CUDA 7.5)</p>
 </div>
 <div class="section" id="data-download">
@@ -210,21 +228,21 @@ or from <a class="reference external" hr
 <ul>
 <li><p class="first">Assuming you have downloaded the data and the list.
 Now we should transform the data into binary files. You can run:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>    
<span class="n">sh</span> <span class="n">create_data</span><span 
class="o">.</span><span class="n">sh</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>    <span class="n">sh</span> <span 
class="n">create_data</span><span class="o">.</span><span class="n">sh</span>
 </pre></div>
 </div>
-<p>The script will generate a test file(<code class="docutils literal"><span 
class="pre">test.bin</span></code>), a mean file(<code class="docutils 
literal"><span class="pre">mean.bin</span></code>) and
-several training files(<code class="docutils literal"><span 
class="pre">trainX.bin</span></code>) in the specified output folder.</p>
+<p>The script will generate a test file(<code class="docutils literal 
notranslate"><span class="pre">test.bin</span></code>), a mean file(<code 
class="docutils literal notranslate"><span class="pre">mean.bin</span></code>) 
and
+several training files(<code class="docutils literal notranslate"><span 
class="pre">trainX.bin</span></code>) in the specified output folder.</p>
 </li>
-<li><p class="first">You can also change the parameters in <code 
class="docutils literal"><span class="pre">create_data.sh</span></code>.</p>
+<li><p class="first">You can also change the parameters in <code 
class="docutils literal notranslate"><span 
class="pre">create_data.sh</span></code>.</p>
 <ul class="simple">
-<li><code class="docutils literal"><span class="pre">-trainlist</span> <span 
class="pre">&lt;file&gt;</span></code>: the file of training list;</li>
-<li><code class="docutils literal"><span class="pre">-trainfolder</span> <span 
class="pre">&lt;folder&gt;</span></code>: the folder of training images;</li>
-<li><code class="docutils literal"><span class="pre">-testlist</span> <span 
class="pre">&lt;file&gt;</span></code>: the file of test list;</li>
-<li><code class="docutils literal"><span class="pre">-testfolder</span> <span 
class="pre">&lt;floder&gt;</span></code>: the folder of test images;</li>
-<li><code class="docutils literal"><span class="pre">-outdata</span> <span 
class="pre">&lt;folder&gt;</span></code>: the folder to save output files, 
including mean, training and test files.
+<li><code class="docutils literal notranslate"><span 
class="pre">-trainlist</span> <span class="pre">&lt;file&gt;</span></code>: the 
file of training list;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-trainfolder</span> <span class="pre">&lt;folder&gt;</span></code>: 
the folder of training images;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-testlist</span> <span class="pre">&lt;file&gt;</span></code>: the 
file of test list;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-testfolder</span> <span class="pre">&lt;floder&gt;</span></code>: 
the folder of test images;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-outdata</span> <span class="pre">&lt;folder&gt;</span></code>: the 
folder to save output files, including mean, training and test files.
 The script will generate these files in the specified folder;</li>
-<li><code class="docutils literal"><span class="pre">-filesize</span> <span 
class="pre">&lt;int&gt;</span></code>: number of training images that stores in 
each binary file.</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-filesize</span> <span class="pre">&lt;int&gt;</span></code>: 
number of training images that stores in each binary file.</li>
 </ul>
 </li>
 </ul>
@@ -233,24 +251,24 @@ The script will generate these files in
 <span id="training"></span><h3>Training<a class="headerlink" href="#training" 
title="Permalink to this headline">¶</a></h3>
 <ul>
 <li><p class="first">After preparing data, you can run the following command 
to train the Alexnet model.</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>    
<span class="n">sh</span> <span class="n">run</span><span 
class="o">.</span><span class="n">sh</span>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>    <span class="n">sh</span> <span 
class="n">run</span><span class="o">.</span><span class="n">sh</span>
 </pre></div>
 </div>
 </li>
-<li><p class="first">You may change the parameters in <code class="docutils 
literal"><span class="pre">run.sh</span></code>.</p>
+<li><p class="first">You may change the parameters in <code class="docutils 
literal notranslate"><span class="pre">run.sh</span></code>.</p>
 <ul class="simple">
-<li><code class="docutils literal"><span class="pre">-epoch</span> <span 
class="pre">&lt;int&gt;</span></code>: number of epoch to be trained, default 
is 90;</li>
-<li><code class="docutils literal"><span class="pre">-lr</span> <span 
class="pre">&lt;float&gt;</span></code>: base learning rate, the learning rate 
will decrease each 20 epochs,
-more specifically, <code class="docutils literal"><span class="pre">lr</span> 
<span class="pre">=</span> <span class="pre">lr</span> <span 
class="pre">*</span> <span class="pre">exp(0.1</span> <span 
class="pre">*</span> <span class="pre">(epoch</span> <span class="pre">/</span> 
<span class="pre">20))</span></code>;</li>
-<li><code class="docutils literal"><span class="pre">-batchsize</span> <span 
class="pre">&lt;int&gt;</span></code>: batchsize, it should be changed 
regarding to your memory;</li>
-<li><code class="docutils literal"><span class="pre">-filesize</span> <span 
class="pre">&lt;int&gt;</span></code>: number of training images that stores in 
each binary file, it is the
-same as the <code class="docutils literal"><span 
class="pre">filesize</span></code> in data preprocessing;</li>
-<li><code class="docutils literal"><span class="pre">-ntrain</span> <span 
class="pre">&lt;int&gt;</span></code>: number of training images;</li>
-<li><code class="docutils literal"><span class="pre">-ntest</span> <span 
class="pre">&lt;int&gt;</span></code>: number of test images;</li>
-<li><code class="docutils literal"><span class="pre">-data</span> <span 
class="pre">&lt;folder&gt;</span></code>: the folder which stores the binary 
files, it is exactly the output
+<li><code class="docutils literal notranslate"><span class="pre">-epoch</span> 
<span class="pre">&lt;int&gt;</span></code>: number of epoch to be trained, 
default is 90;</li>
+<li><code class="docutils literal notranslate"><span class="pre">-lr</span> 
<span class="pre">&lt;float&gt;</span></code>: base learning rate, the learning 
rate will decrease each 20 epochs,
+more specifically, <code class="docutils literal notranslate"><span 
class="pre">lr</span> <span class="pre">=</span> <span class="pre">lr</span> 
<span class="pre">*</span> <span class="pre">exp(0.1</span> <span 
class="pre">*</span> <span class="pre">(epoch</span> <span class="pre">/</span> 
<span class="pre">20))</span></code>;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-batchsize</span> <span class="pre">&lt;int&gt;</span></code>: 
batchsize, it should be changed regarding to your memory;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-filesize</span> <span class="pre">&lt;int&gt;</span></code>: 
number of training images that stores in each binary file, it is the
+same as the <code class="docutils literal notranslate"><span 
class="pre">filesize</span></code> in data preprocessing;</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-ntrain</span> <span class="pre">&lt;int&gt;</span></code>: number 
of training images;</li>
+<li><code class="docutils literal notranslate"><span class="pre">-ntest</span> 
<span class="pre">&lt;int&gt;</span></code>: number of test images;</li>
+<li><code class="docutils literal notranslate"><span class="pre">-data</span> 
<span class="pre">&lt;folder&gt;</span></code>: the folder which stores the 
binary files, it is exactly the output
 folder in data preprocessing step;</li>
-<li><code class="docutils literal"><span class="pre">-pfreq</span> <span 
class="pre">&lt;int&gt;</span></code>: the frequency(in batch) of printing 
current model status(loss and accuracy);</li>
-<li><code class="docutils literal"><span class="pre">-nthreads</span> <span 
class="pre">&lt;int&gt;</span></code>: the number of threads to load data which 
feed to the model.</li>
+<li><code class="docutils literal notranslate"><span class="pre">-pfreq</span> 
<span class="pre">&lt;int&gt;</span></code>: the frequency(in batch) of 
printing current model status(loss and accuracy);</li>
+<li><code class="docutils literal notranslate"><span 
class="pre">-nthreads</span> <span class="pre">&lt;int&gt;</span></code>: the 
number of threads to load data which feed to the model.</li>
 </ul>
 </li>
 </ul>
@@ -260,15 +278,16 @@ folder in data preprocessing step;</li>
 
 
            </div>
+           
           </div>
           <footer>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
       
-        <a href="../googlenet/README.html" class="btn btn-neutral float-right" 
title="Image Classification using GoogleNet" accesskey="n">Next <span class="fa 
fa-arrow-circle-right"></span></a>
+        <a href="../googlenet/README.html" class="btn btn-neutral float-right" 
title="Image Classification using GoogleNet" accesskey="n" rel="next">Next 
<span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="../../char-rnn/README.html" class="btn btn-neutral" 
title="Train Char-RNN over plain text" accesskey="p"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
+        <a href="../../char-rnn/README.html" class="btn btn-neutral" 
title="Train Char-RNN over plain text" accesskey="p" rel="prev"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
@@ -277,11 +296,11 @@ folder in data preprocessing step;</li>
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -300,9 +319,11 @@ folder in data preprocessing step;</li>
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../../../../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" 
src="../../../../_static/jquery.js"></script>
@@ -316,14 +337,13 @@ folder in data preprocessing step;</li>
     <script type="text/javascript" 
src="../../../../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Modified: 
incubator/singa/site/trunk/en/docs/model_zoo/imagenet/googlenet/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/imagenet/googlenet/README.html?rev=1831195&r1=1831194&r2=1831195&view=diff
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/imagenet/googlenet/README.html 
(original)
+++ incubator/singa/site/trunk/en/docs/model_zoo/imagenet/googlenet/README.html 
Tue May  8 15:05:16 2018
@@ -14,30 +14,24 @@
 
   
   
-
-  
-
   
   
-    
 
   
 
   
   
-    <link rel="stylesheet" href="../../../../_static/css/theme.css" 
type="text/css" />
-  
+    
 
   
 
   
-        <link rel="index" title="Index"
-              href="../../../../genindex.html"/>
-        <link rel="search" title="Search" href="../../../../search.html"/>
-    <link rel="top" title="incubator-singa 1.1.0 documentation" 
href="../../../../index.html"/>
-        <link rel="up" title="Model Zoo" href="../../index.html"/>
-        <link rel="next" title="Development Schedule" 
href="../../../../develop/schedule.html"/>
-        <link rel="prev" title="Train AlexNet over ImageNet" 
href="../alexnet/README.html"/>
+    <link rel="stylesheet" href="../../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../../_static/pygments.css" 
type="text/css" />
+    <link rel="index" title="Index" href="../../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../../search.html" />
+    <link rel="next" title="Development Schedule" 
href="../../../../develop/schedule.html" />
+    <link rel="prev" title="Train AlexNet over ImageNet" 
href="../alexnet/README.html" />
     <link href="../../../../_static/style.css" rel="stylesheet" 
type="text/css">
 
 
@@ -46,8 +40,9 @@
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
+   
   <div class="wy-grid-for-nav">
 
     
@@ -62,7 +57,7 @@
 
           
             
-            <img src="../../../../_static/singa.png" class="logo" />
+            <img src="../../../../_static/singa.png" class="logo" alt="Logo"/>
           
           </a>
 
@@ -91,7 +86,10 @@
           
             
             
-                <ul class="current">
+              
+            
+            
+              <ul class="current">
 <li class="toctree-l1"><a class="reference internal" 
href="../../../../downloads.html">Download SINGA</a></li>
 <li class="toctree-l1 current"><a class="reference internal" 
href="../../../index.html">Documentation</a><ul class="current">
 <li class="toctree-l2"><a class="reference internal" 
href="../../../installation.html">Installation</a></li>
@@ -147,36 +145,56 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
-        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-        <a href="../../../../index.html">incubator-singa</a>
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../../index.html">incubator-singa</a>
+        
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
- 
+
+
+
+
+
+
+
+
+
+
+
 
 
 
 <div role="navigation" aria-label="breadcrumbs navigation">
+
   <ul class="wy-breadcrumbs">
-    <li><a href="../../../../index.html">Docs</a> &raquo;</li>
-      
+    
+      <li><a href="../../../../index.html">Docs</a> &raquo;</li>
+        
           <li><a href="../../../index.html">Documentation</a> &raquo;</li>
-      
+        
           <li><a href="../../index.html">Model Zoo</a> &raquo;</li>
-      
-    <li>Image Classification using GoogleNet</li>
+        
+      <li>Image Classification using GoogleNet</li>
+    
+    
       <li class="wy-breadcrumbs-aside">
         
-          
+            
         
       </li>
+    
   </ul>
+
+  
   <hr/>
 </div>
           <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
@@ -197,13 +215,13 @@ license: unrestricted https://github.com
 <span id="instructions"></span><h2>Instructions<a class="headerlink" 
href="#instructions" title="Permalink to this headline">¶</a></h2>
 <ul>
 <li><p class="first">Download the parameter checkpoint file into this 
folder</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  $ 
wget https://s3-ap-southeast-1.amazonaws.com/dlfile/bvlc_googlenet.tar.gz
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  $ wget 
https://s3-ap-southeast-1.amazonaws.com/dlfile/bvlc_googlenet.tar.gz
   $ tar xvf bvlc_googlenet.tar.gz
 </pre></div>
 </div>
 </li>
 <li><p class="first">Run the program</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  # 
use cpu
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  # use cpu
   $ python serve.py -C &amp;
   # use gpu
   $ python serve.py &amp;
@@ -211,7 +229,7 @@ license: unrestricted https://github.com
 </div>
 </li>
 <li><p class="first">Submit images for classification</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span>  $ 
curl -i -F [email protected] http://localhost:9999/api
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  $ curl -i -F [email protected] 
http://localhost:9999/api
   $ curl -i -F [email protected] http://localhost:9999/api
   $ curl -i -F [email protected] http://localhost:9999/api
 </pre></div>
@@ -222,9 +240,9 @@ license: unrestricted https://github.com
 </div>
 <div class="section" id="details">
 <span id="details"></span><h2>Details<a class="headerlink" href="#details" 
title="Permalink to this headline">¶</a></h2>
-<p>We first extract the parameter values from <a class="reference external" 
href="http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel";>Caffe&#8217;s
 checkpoint file</a> into a pickle version
-After downloading the checkpoint file into <code class="docutils 
literal"><span class="pre">caffe_root/python</span></code> folder, run the 
following script</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span 
class="c1"># to be executed within caffe_root/python folder</span>
+<p>We first extract the parameter values from <a class="reference external" 
href="http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel";>Caffe’s 
checkpoint file</a> into a pickle version
+After downloading the checkpoint file into <code class="docutils literal 
notranslate"><span class="pre">caffe_root/python</span></code> folder, run the 
following script</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span><span class="c1"># to be executed within 
caffe_root/python folder</span>
 <span class="kn">import</span> <span class="nn">caffe</span>
 <span class="kn">import</span> <span class="nn">numpy</span> <span 
class="k">as</span> <span class="nn">np</span>
 <span class="kn">import</span> <span class="nn">cPickle</span> <span 
class="k">as</span> <span class="nn">pickle</span>
@@ -245,7 +263,7 @@ After downloading the checkpoint file in
     <span class="n">pickle</span><span class="o">.</span><span 
class="n">dump</span><span class="p">(</span><span class="n">params</span><span 
class="p">,</span> <span class="n">fd</span><span class="p">)</span>
 </pre></div>
 </div>
-<p>Then we construct the GoogleNet using SINGA&#8217;s FeedForwardNet 
structure.
+<p>Then we construct the GoogleNet using SINGA’s FeedForwardNet structure.
 Note that we added a EndPadding layer to resolve the issue from discrepancy
 of the rounding strategy of the pooling layer between Caffe (ceil) and cuDNN 
(floor).
 Only the MaxPooling layers outside inception blocks have this problem.
@@ -255,15 +273,16 @@ Refer to <a class="reference external" h
 
 
            </div>
+           
           </div>
           <footer>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer 
navigation">
       
-        <a href="../../../../develop/schedule.html" class="btn btn-neutral 
float-right" title="Development Schedule" accesskey="n">Next <span class="fa 
fa-arrow-circle-right"></span></a>
+        <a href="../../../../develop/schedule.html" class="btn btn-neutral 
float-right" title="Development Schedule" accesskey="n" rel="next">Next <span 
class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="../alexnet/README.html" class="btn btn-neutral" title="Train 
AlexNet over ImageNet" accesskey="p"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
+        <a href="../alexnet/README.html" class="btn btn-neutral" title="Train 
AlexNet over ImageNet" accesskey="p" rel="prev"><span class="fa 
fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
@@ -272,11 +291,11 @@ Refer to <a class="reference external" h
 
   <div role="contentinfo">
     <p>
-        &copy; Copyright 2017 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..
+        &copy; Copyright 2018 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>
-  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/snide/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
 
 </footer>
 
@@ -295,9 +314,11 @@ Refer to <a class="reference external" h
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'../../../../',
             VERSION:'1.1.0',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
-            HAS_SOURCE:  true
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
         };
     </script>
       <script type="text/javascript" 
src="../../../../_static/jquery.js"></script>
@@ -311,14 +332,13 @@ Refer to <a class="reference external" h
     <script type="text/javascript" 
src="../../../../_static/js/theme.js"></script>
   
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
       });
   </script>
-  
 
 <div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
   <span class="rst-current-version" data-toggle="rst-current-version">

Added: 
incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/README.html
URL: 
http://svn.apache.org/viewvc/incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/README.html?rev=1831195&view=auto
==============================================================================
--- incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/README.html 
(added)
+++ incubator/singa/site/trunk/en/docs/model_zoo/imagenet/inception/README.html 
Tue May  8 15:05:16 2018
@@ -0,0 +1,311 @@
+
+
+
+<!DOCTYPE html>
+<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
+<head>
+  <meta charset="utf-8">
+  
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  
+  <title>Image Classification using Inception V4 &mdash; incubator-singa 1.1.0 
documentation</title>
+  
+
+  
+  
+  
+  
+
+  
+
+  
+  
+    
+
+  
+
+  
+    <link rel="stylesheet" href="../../../../_static/css/theme.css" 
type="text/css" />
+  <link rel="stylesheet" href="../../../../_static/pygments.css" 
type="text/css" />
+    <link rel="index" title="Index" href="../../../../genindex.html" />
+    <link rel="search" title="Search" href="../../../../search.html" />
+    <link href="../../../../_static/style.css" rel="stylesheet" 
type="text/css">
+
+
+  
+  <script src="../../../../_static/js/modernizr.min.js"></script>
+
+</head>
+
+<body class="wy-body-for-nav">
+
+   
+  <div class="wy-grid-for-nav">
+
+    
+    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
+      <div class="wy-side-scroll">
+        <div class="wy-side-nav-search">
+          
+
+          
+            <a href="../../../../index.html" class="icon icon-home"> 
incubator-singa
+          
+
+          
+            
+            <img src="../../../../_static/singa.png" class="logo" alt="Logo"/>
+          
+          </a>
+
+          
+            
+            
+              <div class="version">
+                latest
+              </div>
+            
+          
+
+          
+<div role="search">
+  <form id="rtd-search-form" class="wy-form" action="../../../../search.html" 
method="get">
+    <input type="text" name="q" placeholder="Search docs" />
+    <input type="hidden" name="check_keywords" value="yes" />
+    <input type="hidden" name="area" value="default" />
+  </form>
+</div>
+
+          
+        </div>
+
+        <div class="wy-menu wy-menu-vertical" data-spy="affix" 
role="navigation" aria-label="main navigation">
+          
+            
+            
+              
+            
+            
+              <ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../downloads.html">Download SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../index.html">Documentation</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Development</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../develop/schedule.html">Development Schedule</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../develop/how-contribute.html">How to Contribute to 
SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../develop/contribute-code.html">How to Contribute Code</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../develop/contribute-docs.html">How to Contribute to 
Documentation</a></li>
+</ul>
+<p class="caption"><span class="caption-text">Community</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../community/source-repository.html">Source Repository</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../community/mail-lists.html">Project Mailing Lists</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../community/issue-tracking.html">Issue Tracking</a></li>
+<li class="toctree-l1"><a class="reference internal" 
href="../../../../community/team-list.html">The SINGA Team</a></li>
+</ul>
+
+            
+          
+        </div>
+      </div>
+    </nav>
+
+    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
+
+      
+      <nav class="wy-nav-top" aria-label="top navigation">
+        
+          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
+          <a href="../../../../index.html">incubator-singa</a>
+        
+      </nav>
+
+
+      <div class="wy-nav-content">
+        
+        <div class="rst-content">
+        
+          
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<div role="navigation" aria-label="breadcrumbs navigation">
+
+  <ul class="wy-breadcrumbs">
+    
+      <li><a href="../../../../index.html">Docs</a> &raquo;</li>
+        
+      <li>Image Classification using Inception V4</li>
+    
+    
+      <li class="wy-breadcrumbs-aside">
+        
+            
+        
+      </li>
+    
+  </ul>
+
+  
+  <hr/>
+</div>
+          <div role="main" class="document" itemscope="itemscope" 
itemtype="http://schema.org/Article";>
+           <div itemprop="articleBody">
+            
+  <hr class="docutils" />
+<p>name: Inception V4 on ImageNet
+SINGA version: 1.1.1
+SINGA commit:
+parameter_url: 
https://s3-ap-southeast-1.amazonaws.com/dlfile/inception_v4.tar.gz
+parameter_sha1: 5fdd6f5d8af8fd10e7321d9b38bb87ef14e80d56
+license: https://github.com/tensorflow/models/tree/master/slim</p>
+<hr class="docutils" />
+<div class="section" id="image-classification-using-inception-v4">
+<span id="image-classification-using-inception-v4"></span><h1>Image 
Classification using Inception V4<a class="headerlink" 
href="#image-classification-using-inception-v4" title="Permalink to this 
headline">¶</a></h1>
+<p>In this example, we convert Inception V4 trained on Tensorflow to SINGA for 
image classification.</p>
+<div class="section" id="instructions">
+<span id="instructions"></span><h2>Instructions<a class="headerlink" 
href="#instructions" title="Permalink to this headline">¶</a></h2>
+<ul>
+<li><p class="first">Download the parameter checkpoint file</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  $ wget
+  $ tar xvf inception_v4.tar.gz
+</pre></div>
+</div>
+</li>
+<li><p class="first">Download <a class="reference external" 
href="https://github.com/BVLC/caffe/blob/master/data/ilsvrc12/get_ilsvrc_aux.sh";>synset_word.txt</a>
 file.</p>
+</li>
+<li><p class="first">Run the program</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  # use cpu
+  $ python serve.py -C &amp;
+  # use gpu
+  $ python serve.py &amp;
+</pre></div>
+</div>
+</li>
+<li><p class="first">Submit images for classification</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>  $ curl -i -F [email protected] 
http://localhost:9999/api
+  $ curl -i -F [email protected] http://localhost:9999/api
+  $ curl -i -F [email protected] http://localhost:9999/api
+</pre></div>
+</div>
+</li>
+</ul>
+<p>image1.jpg, image2.jpg and image3.jpg should be downloaded before executing 
the above commands.</p>
+</div>
+<div class="section" id="details">
+<span id="details"></span><h2>Details<a class="headerlink" href="#details" 
title="Permalink to this headline">¶</a></h2>
+<p>We first extract the parameter values from <a class="reference external" 
href="http://download.tensorflow.org/models/inception_v4_2016_09_09.tar.gz";>Tensorflow’s
 checkpoint file</a> into a pickle version.
+After downloading and decompressing the checkpoint file, run the following 
script</p>
+<div class="highlight-default notranslate"><div 
class="highlight"><pre><span></span>$ python convert.py 
--file_name=inception_v4.ckpt
+</pre></div>
+</div>
+</div>
+</div>
+
+
+           </div>
+           
+          </div>
+          <footer>
+  
+
+  <hr/>
+
+  <div role="contentinfo">
+    <p>
+        &copy; Copyright 2018 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>
+  Built with <a href="http://sphinx-doc.org/";>Sphinx</a> using a <a 
href="https://github.com/rtfd/sphinx_rtd_theme";>theme</a> provided by <a 
href="https://readthedocs.org";>Read the Docs</a>. 
+
+</footer>
+
+        </div>
+      </div>
+
+    </section>
+
+  </div>
+  
+
+
+  
+
+    <script type="text/javascript">
+        var DOCUMENTATION_OPTIONS = {
+            URL_ROOT:'../../../../',
+            VERSION:'1.1.0',
+            LANGUAGE:'None',
+            COLLAPSE_INDEX:false,
+            FILE_SUFFIX:'.html',
+            HAS_SOURCE:  true,
+            SOURCELINK_SUFFIX: '.txt'
+        };
+    </script>
+      <script type="text/javascript" 
src="../../../../_static/jquery.js"></script>
+      <script type="text/javascript" 
src="../../../../_static/underscore.js"></script>
+      <script type="text/javascript" 
src="../../../../_static/doctools.js"></script>
+
+  
+
+  
+  
+    <script type="text/javascript" 
src="../../../../_static/js/theme.js"></script>
+  
+
+  <script type="text/javascript">
+      jQuery(function () {
+          
+          SphinxRtdTheme.Navigation.enableSticky();
+          
+      });
+  </script>
+
+<div class="rst-versions shift-up" data-toggle="rst-versions" role="note" 
aria-label="versions">
+  <span class="rst-current-version" data-toggle="rst-current-version">
+    <span class="fa fa-book"> incubator-singa </span>
+    v: latest
+    <span class="fa fa-caret-down"></span>
+  </span>
+  <div class="rst-other-versions">
+      <dl>
+          <dt>Languages</dt>
+          <dd><a href="../../../../../en/index.html">English</a></dd>
+          <dd><a href="../../../../../zh/index.html">中文</a></dd>
+      </dl>
+      <dl>
+          <dt>Versions</dt>
+          <dd><a href="http://singa.apache.org/v0.3.0/";>0.3</a></dd>
+          <dd><a href="http://singa.apache.org/v1.1.0/";>1.1</a></dd>
+      </dl>
+
+  </div>
+  <a href="http://incubator.apache.org/";> <img src= 
"../../../../_static/apache.png" style="background-color:white;"> </a>
+</div>
+
+ <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>
+
+ 
+
+
+</body>
+</html>
\ No newline at end of file


Reply via email to