You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2018/06/08 15:29:02 UTC
svn commit: r1833193 [16/17] - in /incubator/singa/site/trunk: en/
en/_sources/ en/_sources/develop/ en/_sources/docs/
en/_sources/docs/model_zoo/examples/imagenet/densenet/
en/_sources/docs/model_zoo/examples/imagenet/vgg/ en/_sources/releases/
en/com...
Added: incubator/singa/site/trunk/zh/docs/tensor.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/docs/tensor.html?rev=1833193&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/docs/tensor.html (added)
+++ incubator/singa/site/trunk/zh/docs/tensor.html Fri Jun 8 15:29:00 2018
@@ -0,0 +1,948 @@
+
+
+
+<!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>å¼ é(Tensor) — 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 rel="next" title="å±(Layer)" href="layer.html" />
+ <link rel="prev" title="设å¤(Device)" href="device.html" />
+ <link href="../_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="../_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
+
+
+
+ <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 class="current">
+<li class="toctree-l1"><a class="reference internal" href="../downloads.html">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1 current"><a class="reference internal" href="index.html">ææ¡£</a><ul class="current">
+<li class="toctree-l2"><a class="reference internal" href="installation.html">å®è£
</a></li>
+<li class="toctree-l2"><a class="reference internal" href="software_stack.html">软件æ¶æ</a></li>
+<li class="toctree-l2"><a class="reference internal" href="device.html">设å¤(Device)</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">å¼ é(Tensor)</a><ul>
+<li class="toctree-l3"><a class="reference internal" href="#python-api">PYTHON API</a><ul>
+<li class="toctree-l4"><a class="reference internal" href="#class-singa-tensor-tensor-shape-none-device-none-dtype-0">class singa.tensor.Tensor(shape=None, device=None, dtype=0)</a></li>
+</ul>
+</li>
+</ul>
+</li>
+<li class="toctree-l2"><a class="reference internal" href="layer.html">å±(Layer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="net.html">åé¦ç½ç»</a></li>
+<li class="toctree-l2"><a class="reference internal" href="initializer.html">åå§åå¨(Initializer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="loss.html">æ失(Loss)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="metric.html">度é(Metric)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="optimizer.html">ä¼åå¨(Optimizer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="data.html">æ°æ®(Data)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image_tool.html">å¾åå·¥å
·</a></li>
+<li class="toctree-l2"><a class="reference internal" href="snapshot.html">Snapshot</a></li>
+<li class="toctree-l2"><a class="reference internal" href="utils.html">Utils</a></li>
+<li class="toctree-l2"><a class="reference internal" href="model_zoo/index.html">模ååº</a></li>
+</ul>
+</li>
+</ul>
+<p class="caption"><span class="caption-text">å¼å</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" href="../develop/schedule.html">å¼åæ¶é´è¡¨</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../develop/how-contribute.html">å¦ä½è´¡ç®ç» SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../develop/contribute-code.html">å¦ä½è´¡ç®ä»£ç </a></li>
+</ul>
+<p class="caption"><span class="caption-text">社åº</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" href="../community/source-repository.html">æºä»£ç åº</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/mail-lists.html">项ç®é®ä»¶å表</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/issue-tracking.html">é®é¢è¿½è¸ª</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/team-list.html">SINGAå¢é</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> »</li>
+
+ <li><a href="index.html">ææ¡£</a> »</li>
+
+ <li>å¼ é(Tensor)</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="tensor">
+<span id="tensor"></span><h1>å¼ é(Tensor)<a class="headerlink" href="#tensor" title="Permalink to this headline">¶</a></h1>
+<p>æ¯ä¸ªTensorå®ä¾é½æ¯ä¸ä¸ªåé
å¨ç¹å®Deviceå®ä¾ä¸çå¤ç»´æ°ç»ã Tensorå®ä¾åå¨äºåé并æä¾äºç¨æ·ä¸å¯è§çæ¯æå¤ç§è®¾å¤ç代æ°æä½ã注æï¼ç¨æ·éè¦ç¡®ä¿é¤äºæ·è´ä¹å¤çtensoræä½é½æ¯å¨ç¸åç设å¤ä¸è¿è¡çã</p>
+<p>Tensorçå®ç°</p>
+<p>SINGAæä¸ç§Tensorå½æ°çå®ç°ï¼åå«å¨ä¸å设å¤ä¸ã</p>
+<ul class="simple">
+<li><code class="docutils literal notranslate"><span class="pre">tensor_math_cpp.h</span></code> ç¨Cppå®ç°äºCppCPUä¸çåç§æä½</li>
+<li><code class="docutils literal notranslate"><span class="pre">tensor_math_cuda.h</span></code> ç¨Cuda (åcuBLAS)å®ç°äºCudaGPUä¸çåç§æä½</li>
+<li><code class="docutils literal notranslate"><span class="pre">tensor_math_opencl.h</span></code> ç¨OpenCLå®ç°äºOpenclGPUä¸çåç§æä½</li>
+</ul>
+<div class="section" id="python-api">
+<span id="python-api"></span><h2>PYTHON API<a class="headerlink" href="#python-api" title="Permalink to this headline">¶</a></h2>
+<p>ç¨æ³ç¤ºä¾ï¼</p>
+<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="kn">as</span> <span class="nn">np</span>
+<span class="kn">from</span> <span class="nn">singa</span> <span class="kn">import</span> <span class="n">tensor</span>
+<span class="kn">from</span> <span class="nn">singa</span> <span class="kn">import</span> <span class="n">device</span>
+
+<span class="c1"># create a tensor with shape (2,3), default CppCPU device and float32</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">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
+<span class="n">x</span><span class="o">.</span><span class="n">set_value</span><span class="p">(</span><span class="mf">0.4</span><span class="p">)</span>
+
+<span class="c1"># create a tensor from a numpy array</span>
+<span class="n">npy</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">((</span><span class="mi">3</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">float32</span><span class="p">)</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">npy</span><span class="p">)</span>
+
+<span class="n">y</span><span class="o">.</span><span class="n">uniform</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="c1"># sample values from the uniform distribution</span>
+
+<span class="n">z</span> <span class="o">=</span> <span class="n">tensor</span><span class="o">.</span><span class="n">mult</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"># gemm -> z of shape (2, 3)</span>
+
+<span class="n">x</span> <span class="o">+=</span> <span class="n">z</span> <span class="c1"># element-wise addition</span>
+
+<span class="n">dev</span> <span class="o">=</span> <span class="n">device</span><span class="o">.</span><span class="n">get_default_device</span><span class="p">()</span>
+<span class="n">x</span><span class="o">.</span><span class="n">to_device</span><span class="p">(</span><span class="n">dev</span><span class="p">)</span> <span class="c1"># move the data to a gpu device</span>
+
+<span class="n">r</span> <span class="o">=</span> <span class="n">tensor</span><span class="o">.</span><span class="n">relu</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
+
+<span class="n">s</span> <span class="o">=</span> <span class="n">tensor</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">(</span><span class="n">r</span><span class="p">)</span> <span class="c1"># tensor -> numpy array</span>
+</pre></div>
+</div>
+<p>æ两ç§ç±»åçtensorå½æ°:</p>
+<p><strong>Tensoræåå½æ°</strong></p>
+<p>å°ä¼æ¹åTensorå®ä¾çç¶æ</p>
+<p><strong>Tensor模ååå½æ°</strong></p>
+<p>æ¥åTensorå®ä¾ä½ä¸ºèªåé以åè¿åTensorå®ä¾</p>
+<p>æ¯ä¸ªTensorå®ä¾å¨è¯»åæ°æ®åé½å¿
é¡»ååå§å</p>
+<hr class="docutils" />
+<div class="section" id="class-singa-tensor-tensor-shape-none-device-none-dtype-0">
+<span id="class-singa-tensor-tensor-shape-none-device-none-dtype-0"></span><h3>class singa.tensor.Tensor(shape=None, device=None, dtype=0)<a class="headerlink" href="#class-singa-tensor-tensor-shape-none-device-none-dtype-0" title="Permalink to this headline">¶</a></h3>
+<p>å建Py Tensorï¼å°è£
äºä¸ä¸ªåºäºswig转æ¢çCPP Tensorã
+ä¸ä¸ªåæ°åå«æ¯Tensorçä¸ä¸ªå±æ§ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>shape (list<int>)</strong> â ä¸ä¸ªå表çæ´å½¢æ°æ®ä½ä¸ºTensorçå½¢ç¶ãå¦æshape没ææå®ï¼å°ä¼å建ä¸ä¸ªä¼ªTensorã</li>
+<li><strong>device</strong> â swig转åç使ç¨è®¾å¤æ¨¡ååçDeviceå®ä¾ã å¦æ为Noneï¼é»è®¤çCPU设å¤å°ä¼è¢«ä½¿ç¨ã</li>
+<li><strong>dtype</strong> â æ°æ®ç±»åã ç®åï¼å¤§å¤æ°æä½ä»
æ¯ækFloat32ã</li>
+</ul>
+<hr class="docutils" />
+<div class="section" id="t">
+<span id="t"></span><h4>T()<a class="headerlink" href="#t" title="Permalink to this headline">¶</a></h4>
+<p>æµ
æ·è´ã</p>
+<p><strong>è¿åå¼ï¼</strong> ä¸ä¸ªæ°Tensorï¼å
±äº«åºå±æ°æ®æå å
åï¼ä½æ 记为该tensorç转置çæ¬ã</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="add-column-v">
+<span id="add-column-v"></span><h4>add_column(v)<a class="headerlink" href="#add-column-v" title="Permalink to this headline">¶</a></h4>
+<p>对该Tensoræ¯åå ä¸ä¸ä¸ªtensorã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 被ä½ä¸ºä¸åå å°åtensorçTensor</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="add-row-v">
+<span id="add-row-v"></span><h4>add_row(v)<a class="headerlink" href="#add-row-v" title="Permalink to this headline">¶</a></h4>
+<p>对该tensoræ¯è¡å ä¸ä¸ªtensorã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 被ä½ä¸ºè¡å å°åtensorçTensor</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="bernoulli-p">
+<span id="bernoulli-p"></span><h4>bernoulli(p)<a class="headerlink" href="#bernoulli-p" title="Permalink to this headline">¶</a></h4>
+<p>对æ¯ä¸ªå
ç´ ï¼æç
§ç»å®æ¦çä»0/1ä¸åæ ·ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>p (float)</strong> â 以æ¦çpåæ ·ä¸ä¸ªå
ç´ ä¸º1</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="clone">
+<span id="clone"></span><h4>clone()<a class="headerlink" href="#clone" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> ä¸ä¸ªæ°Tensorï¼æ¯å¾
æ·è´Tensorçæ·±æ·è´</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="copy">
+<span id="copy"></span><h4>copy()<a class="headerlink" href="#copy" title="Permalink to this headline">¶</a></h4>
+<p>è°ç¨singa::Tensorçæ·è´æé å¨è¿è¡æµ
æ·è´ã</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="copy-data-t">
+<span id="copy-data-t"></span><h4>copy_data(t)<a class="headerlink" href="#copy-data-t" title="Permalink to this headline">¶</a></h4>
+<p>ä»å¦ä¸ä¸ªTensorå®ä¾æ·è´æ°æ®ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â æºTensor</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="copy-from-numpy-np-array-offset-0">
+<span id="copy-from-numpy-np-array-offset-0"></span><h4>copy_from_numpy(np_array, offset=0)<a class="headerlink" href="#copy-from-numpy-np-array-offset-0" title="Permalink to this headline">¶</a></h4>
+<p>ä»numpyæ°ç»ä¸æ·è´æ°æ®ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>np_array</strong> â æºnumpyæ°ç»</li>
+<li><strong>offset (int)</strong> â ç®æ å移</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="deepcopy">
+<span id="deepcopy"></span><h4>deepcopy()<a class="headerlink" href="#deepcopy" title="Permalink to this headline">¶</a></h4>
+<p>åclone()</p>
+<p><strong>è¿åå¼ï¼</strong> æ°Tensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="div-column-v">
+<span id="div-column-v"></span><h4>div_column(v)<a class="headerlink" href="#div-column-v" title="Permalink to this headline">¶</a></h4>
+<p>å°Tensoræ¯åé¤ä»¥vã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorçåé¿ç¸å</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="div-row-v">
+<span id="div-row-v"></span><h4>div_row(v)<a class="headerlink" href="#div-row-v" title="Permalink to this headline">¶</a></h4>
+<p>å°Tensoræ¯è¡é¤ä»¥vã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorçè¡é¿ç¸å</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="gaussian-mean-std">
+<span id="gaussian-mean-std"></span><h4>gaussian(mean, std)<a class="headerlink" href="#gaussian-mean-std" title="Permalink to this headline">¶</a></h4>
+<p>æç
§é«æ¯åå¸å¯¹æ¯ä¸ªå
ç´ éæ ·ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>mean (float)</strong> â åå¸çåå¼</li>
+<li><strong>std (float)</strong> â åå¸çæ åå·®</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="is-empty">
+<span id="is-empty"></span><h4>is_empty()<a class="headerlink" href="#is-empty" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> æ ¹æ®tensorçå½¢ç¶ï¼å¦ææ¯ç©ºçè¿åTrue</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="is-transpose">
+<span id="is-transpose"></span><h4>is_transpose()<a class="headerlink" href="#is-transpose" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> å¦æå
é¨æ°æ®è¢«è½¬ç½®åè¿åTrueï¼å¦åè¿åFalse</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="l1">
+<span id="l1"></span><h4>l1()<a class="headerlink" href="#l1" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> L1 norm</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="l2">
+<span id="l2"></span><h4>l2()<a class="headerlink" href="#l2" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> L2 norm</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="memsize">
+<span id="memsize"></span><h4>memsize()<a class="headerlink" href="#memsize" title="Permalink to this headline">¶</a></h4>
+<ul class="simple">
+<li><strong>è¿åå¼ï¼</strong> 被åé
ç»è¯¥tensorçBytesæ°</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="mult-column-v">
+<span id="mult-column-v"></span><h4>mult_column(v)<a class="headerlink" href="#mult-column-v" title="Permalink to this headline">¶</a></h4>
+<p>å°tensoræ¯ååvåå
ç´ çº§å«ä¹æ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensoråé¿çé¿</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="mult-row-v">
+<span id="mult-row-v"></span><h4>mult_row(v)<a class="headerlink" href="#mult-row-v" title="Permalink to this headline">¶</a></h4>
+<p>å°tensoræ¯è¡åvåå
ç´ çº§å«ä¹æ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorè¡é¿çé¿</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="ndim">
+<span id="ndim"></span><h4>ndim()<a class="headerlink" href="#ndim" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> tensorç维度</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="reset-like-t">
+<span id="reset-like-t"></span><h4>reset_like(t)<a class="headerlink" href="#reset-like-t" title="Permalink to this headline">¶</a></h4>
+<p>æ ¹æ®ç»å®tensoréç½®æºtensorå½¢ç¶ï¼æ°æ®ç±»åå设å¤ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â éè¦éç½®çtensor</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="set-value-x">
+<span id="set-value-x"></span><h4>set_value(x)<a class="headerlink" href="#set-value-x" title="Permalink to this headline">¶</a></h4>
+<p>设置ææå
ç´ å¼ä¸ºç»å®å¼ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>x(float)</strong> - å¾
设å®çå¼</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="size">
+<span id="size"></span><h4>size()<a class="headerlink" href="#size" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> tensorä¸çå
ç´ ä¸ªæ°</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="to-device-device">
+<span id="to-device-device"></span><h4>to_device(device)<a class="headerlink" href="#to-device-device" title="Permalink to this headline">¶</a></h4>
+<p>å°tensorä¸æ°æ®ä¼ å°æå®è®¾å¤ä¸ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>device</strong> - ä»CudaGPU/CppCPU/OpenclGPU转æ¢çswig设å¤</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="to-host">
+<span id="to-host"></span><h4>to_host()<a class="headerlink" href="#to-host" title="Permalink to this headline">¶</a></h4>
+<p>å°tensoræ°æ®ä¼ å°é»è®¤çCppCPU设å¤ä¸ã</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="uniform-low-high">
+<span id="uniform-low-high"></span><h4>uniform(low, high)<a class="headerlink" href="#uniform-low-high" title="Permalink to this headline">¶</a></h4>
+<p>ä»åååå¸ä¸è¿è¡éæ ·ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>low (float)</strong> â ä¸ç</li>
+<li><strong>high (float)</strong> â ä¸ç</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-abs-t">
+<span id="singa-tensor-abs-t"></span><h4>singa.tensor.abs(t)<a class="headerlink" href="#singa-tensor-abs-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t(Tensor)</strong> - è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¸ä¸ªæ°tensorï¼å
¶å
ç´ å¼ä¸ºy=abs(x)ï¼xæ¯tä¸çå
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-add-lhs-rhs-ret-none">
+<span id="singa-tensor-add-lhs-rhs-ret-none"></span><h4>singa.tensor.add(lhs, rhs, ret=None)<a class="headerlink" href="#singa-tensor-add-lhs-rhs-ret-none" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«å æ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>lhs (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>rhs (Tensor)</strong> â å³æä½tensor</li>
+<li><strong>ret (Tensor, optional)</strong> â å¦æä¸æ¯ç©ºï¼ ç»æå°è¢«ä¿åå¨å
¶ä¸ï¼å¦åï¼ä¸ä¸ªæ°tensorä¼è¢«å建以ä¿åç»æã</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> æ°tensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-add-column-alpha-v-beta-m">
+<span id="singa-tensor-add-column-alpha-v-beta-m"></span><h4>singa.tensor.add_column(alpha, v, beta, M)<a class="headerlink" href="#singa-tensor-add-column-alpha-v-beta-m" title="Permalink to this headline">¶</a></h4>
+<p>å°vå å°Mçæ¯ä¸ªååé, å®ä¹Mä¸å为mï¼m=alpha * v + beta * m</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>alpha (float)</strong> â vçç³»æ°</li>
+<li><strong>v (Tensor)</strong> â 1ç»´tensor</li>
+<li><strong>beta (float)</strong> â Mçç³»æ°</li>
+<li><strong>M (Tensor)</strong> â 2ç»´tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> M</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-add-row-alpha-v-beta-m">
+<span id="singa-tensor-add-row-alpha-v-beta-m"></span><h4>singa.tensor.add_row(alpha, v, beta, M)<a class="headerlink" href="#singa-tensor-add-row-alpha-v-beta-m" title="Permalink to this headline">¶</a></h4>
+<p>å°vå å°Mçæ¯ä¸ªè¡åé, å®ä¹Mä¸è¡ä¸ºmï¼m=alpha * v + beta * mã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>alpha (float)</strong> â vçç³»æ°</li>
+<li><strong>v (Tensor)</strong> â 1ç»´tensor</li>
+<li><strong>beta (float)</strong> â Mçç³»æ°</li>
+<li><strong>M (Tensor)</strong> â 2ç»´tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> M</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-average-t-axis-none">
+<span id="singa-tensor-average-t-axis-none"></span><h4>singa.tensor.average(t, axis=None)<a class="headerlink" href="#singa-tensor-average-t-axis-none" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥Tensor</li>
+<li><strong>axis (int, optional)</strong> â å¦æ为空ï¼åææå
ç´ çå¹³åå¼ï¼å¦åï¼åç»å®ç»´åº¦çå
ç´ å¹³åå¼ã0表示ååå¼ï¼1表示è¡åå¼ã</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> å¦æaxisæ¯ç©ºï¼è¿åä¸ä¸ªfloatå¼ï¼å¦åï¼è¿åä¸ä¸ªæ°tensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-axpy-alpha-x-y">
+<span id="singa-tensor-axpy-alpha-x-y"></span><h4>singa.tensor.axpy(alpha, x, y)<a class="headerlink" href="#singa-tensor-axpy-alpha-x-y" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«æä½ y += alpha * xã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>alpha (float)</strong> â xçç³»æ°</li>
+<li><strong>x (Tensor)</strong> â 被å çtensor</li>
+<li><strong>y (Tensor)</strong> â åtensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> y</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-bernoulli-p-t">
+<span id="singa-tensor-bernoulli-p-t"></span><h4>singa.tensor.bernoulli(p, t)<a class="headerlink" href="#singa-tensor-bernoulli-p-t" title="Permalink to this headline">¶</a></h4>
+<p>对æ¯ä¸ªå
ç´ çæä¸ä¸ªäºè¿å¶ä½ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>p (float)</strong> â each element is 1 with probability p; and 0 with 1 - p</li>
+<li><strong>t (Tensor)</strong> â the results are put into t</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> t</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-copy-data-to-from-dst-src-size-dst-offset-0-src-offset-0">
+<span id="singa-tensor-copy-data-to-from-dst-src-size-dst-offset-0-src-offset-0"></span><h4>singa.tensor.copy_data_to_from(dst, src, size, dst_offset=0, src_offset=0)<a class="headerlink" href="#singa-tensor-copy-data-to-from-dst-src-size-dst-offset-0-src-offset-0" title="Permalink to this headline">¶</a></h4>
+<p>å°æ°æ®ä»ä¸ä¸ªtensorå®ä¾æ·è´å°å¦ä¸ä¸ªtensorå®ä¾ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>dst (Tensor)</strong> â ç®æ Tensor</li>
+<li><strong>src (Tensor)</strong> â æºTensor</li>
+<li><strong>size (int)</strong> â æ·è´å
ç´ æ°ç®</li>
+<li><strong>dst_offset (int)</strong> â æ·è´å°dstå
ç´ å¨dstçèµ·å§å移</li>
+<li><strong>src_offset (int)</strong> â å¾
æ·è´çå
ç´ å¨srcä¸çèµ·å§å移</li>
+</ul>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-div-lhs-rhs-ret-none">
+<span id="singa-tensor-div-lhs-rhs-ret-none"></span><h4>singa.tensor.div(lhs, rhs, ret=None)<a class="headerlink" href="#singa-tensor-div-lhs-rhs-ret-none" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çé¤æ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>lhs (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>rhs (Tensor)</strong> â å³æä½tensor</li>
+<li><strong>ret (Tensor, optional)</strong> â å¦æé空ï¼å°æç»æåå
¥ï¼å¦åï¼å建ä¸ä¸ªæ°tensor并å°ç»æåå
¥</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> åæè¿ç®ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-eltwise-mult-lhs-rhs-ret-none">
+<span id="singa-tensor-eltwise-mult-lhs-rhs-ret-none"></span><h4>singa.tensor.eltwise_mult(lhs, rhs, ret=None)<a class="headerlink" href="#singa-tensor-eltwise-mult-lhs-rhs-ret-none" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çä¹æ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>lhs (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>rhs (Tensor)</strong> â å³æä½tensor</li>
+<li><strong>ret (Tensor, optional)</strong> â å¦æé空ï¼å°æç»æåå
¥ï¼å¦åï¼å建ä¸ä¸ªæ°tensor并å°ç»æåå
¥</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¿åè¿ç®ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-exp-t">
+<span id="singa-tensor-exp-t"></span><h4>singa.tensor.exp(t)<a class="headerlink" href="#singa-tensor-exp-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> æ°tensorï¼å
¶ä¸å
ç´ ä¸º y = exp(x)ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-from-numpy-np-array">
+<span id="singa-tensor-from-numpy-np-array"></span><h4>singa.tensor.from_numpy(np_array)<a class="headerlink" href="#singa-tensor-from-numpy-np-array" title="Permalink to this headline">¶</a></h4>
+<p>æ ¹æ®numpyæ°ç»çå½¢ç¶ãæ°æ®ç±»ååæ°å¼å建ä¸ä¸ªtensorã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>np_array</strong> â numpyæ°ç»</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> åé
å¨é»è®¤CppCPU设å¤ä¸çtensorå®ä¾</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-gaussian-mean-std-t">
+<span id="singa-tensor-gaussian-mean-std-t"></span><h4>singa.tensor.gaussian(mean, std, t)<a class="headerlink" href="#singa-tensor-gaussian-mean-std-t" title="Permalink to this headline">¶</a></h4>
+<p>æç
§ç»å®é«æ¯åå¸çææ°å¼ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>mean (float)</strong> â é«æ¯åå¸çåå¼</li>
+<li><strong>std (float)</strong> â é«æ¯åå¸çæ åå·®</li>
+<li><strong>t (Tensor)</strong> â ç»æ被åå
¥t</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> t</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-ge-t-x">
+<span id="singa-tensor-ge-t-x"></span><h4>singa.tensor.ge(t, x)<a class="headerlink" href="#singa-tensor-ge-t-x" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çæ¯è¾ï¼t >= xã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â å·¦æä½æ°</li>
+<li><strong>x (Tensor or float)</strong> â å³æä½æ°</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 0.0f æ t[i] >= x[i] ? 1.0f:0.0f</p>
+<p><strong>è¿åå¼ç±»åï¼</strong> tensorï¼æ¯ä¸ªå
ç´ ä¸º t[i] >= x ? 1.0f</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-gt-t-x">
+<span id="singa-tensor-gt-t-x"></span><h4>singa.tensor.gt(t, x)<a class="headerlink" href="#singa-tensor-gt-t-x" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çæ¯è¾ï¼t > xã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 0.0f æ t[i] > x[i] ? 1.0f:0.0f</p>
+<p><strong>è¿åå¼ç±»åï¼</strong> tensorï¼æ¯ä¸ªå
ç´ ä¸º t[i] > x ? 1.0f</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-le-t-x">
+<span id="singa-tensor-le-t-x"></span><h4>singa.tensor.le(t, x)<a class="headerlink" href="#singa-tensor-le-t-x" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çæ¯è¾ï¼t <= xã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 0.0f æ t[i] <= x[i] ? 1.0f:0.0f</p>
+<p><strong>è¿åå¼ç±»åï¼</strong> tensorï¼æ¯ä¸ªå
ç´ ä¸º t[i] <= x ? 1.0f</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-lt-t-x">
+<span id="singa-tensor-lt-t-x"></span><h4>singa.tensor.lt(t, x)<a class="headerlink" href="#singa-tensor-lt-t-x" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çæ¯è¾ï¼t < xã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 0.0f æ t[i] < x[i] ? 1.0f:0.0f</p>
+<p><strong>è¿åå¼ç±»åï¼</strong> tensorï¼æ¯ä¸ªå
ç´ ä¸º t[i] < x ? 1.0f</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-log-t">
+<span id="singa-tensor-log-t"></span><h4>singa.tensor.log(t)<a class="headerlink" href="#singa-tensor-log-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¸ä¸ªæ°tensorï¼å
¶å
ç´ å¼ä¸ºy = log(x)ï¼xæ¯tä¸çå
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-mult-a-b-c-none-alpha-1-0-beta-0-0">
+<span id="singa-tensor-mult-a-b-c-none-alpha-1-0-beta-0-0"></span><h4>singa.tensor.mult(A, B, C=None, alpha=1.0, beta=0.0)<a class="headerlink" href="#singa-tensor-mult-a-b-c-none-alpha-1-0-beta-0-0" title="Permalink to this headline">¶</a></h4>
+<p>ç©éµ-ç©éµæç©éµ-åéä¹æ³, å½æ°è¿å C = alpha * A * B + beta * Cã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>A (Tensor)</strong> â 2ç»´Tensor</li>
+<li><strong>B (Tensor)</strong> â å¦æBæ¯1ç»´Tensor, å°è°ç¨GEMVåç©éµ-åéä¹æ³ï¼å¦åå°è°ç¨GEMMã</li>
+<li><strong>C (Tensor, optional)</strong> â åå¨ç»æï¼å¦æ为空ï¼å°å建æ°tensoråå¨ç»æã</li>
+<li><strong>alpha (float)</strong> â A * B çç³»æ°</li>
+<li><strong>beta (float)</strong> â C çç³»æ°</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¿åè¿ç®ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-pow-t-x-out-none">
+<span id="singa-tensor-pow-t-x-out-none"></span><h4>singa.tensor.pow(t, x, out=None)<a class="headerlink" href="#singa-tensor-pow-t-x-out-none" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+<li><strong>x (float or Tensor)</strong> â å¦æxæ¯æµ®ç¹æ° y[i] = t[i]^x; å¦å y[i]= t[i]^x[i]</li>
+<li><strong>out (None or Tensor)</strong> â å¦æé空ï¼å°åå
¥ç»æï¼å¦åï¼å°å建ä¸ä¸ªæ°tensorä¿åç»æã</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¿åè¿ç®ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-relu-t">
+<span id="singa-tensor-relu-t"></span><h4>singa.tensor.relu(t)<a class="headerlink" href="#singa-tensor-relu-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> tensorï¼å
¶ä¸å
ç´ ä¸º y = x è¥x >0ï¼å¦åy = 0ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-reshape-t-s">
+<span id="singa-tensor-reshape-t-s"></span><h4>singa.tensor.reshape(t, s)<a class="headerlink" href="#singa-tensor-reshape-t-s" title="Permalink to this headline">¶</a></h4>
+<p>æ¹åtensorçå½¢ç¶ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â å¾
æ¹åå½¢ç¶çtensor</li>
+<li><strong>s (list<int>)</strong> â æ°å½¢ç¶ï¼ä½ç§¯ååtensorä½ç§¯ç¸å</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> æ°tensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sigmoid-t">
+<span id="singa-tensor-sigmoid-t"></span><h4>singa.tensor.sigmoid(t)<a class="headerlink" href="#singa-tensor-sigmoid-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> tensorï¼å
¶ä¸å
ç´ ä¸º y = sigmoid(x)ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sign-t">
+<span id="singa-tensor-sign-t"></span><h4>singa.tensor.sign(t)<a class="headerlink" href="#singa-tensor-sign-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> tensorï¼å
¶ä¸å
ç´ ä¸º y = sign(x)ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sizeof-dtype">
+<span id="singa-tensor-sizeof-dtype"></span><h4>singa.tensor.sizeof(dtype)<a class="headerlink" href="#singa-tensor-sizeof-dtype" title="Permalink to this headline">¶</a></h4>
+<p><strong>è¿åå¼ï¼</strong> ä¾æ®core.protoä¸å®ä¹çSINGAæ°æ®ç±»åï¼è¿åç»å®ç±»åæå Byteæ°ç®</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-softmax-t-out-none">
+<span id="singa-tensor-softmax-t-out-none"></span><h4>singa.tensor.softmax(t, out=None)<a class="headerlink" href="#singa-tensor-softmax-t-out-none" title="Permalink to this headline">¶</a></h4>
+<p>对tensoræ¯è¡åSoftMaxã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥1ç»´æ2ç»´tensor</li>
+<li><strong>out (Tensor, å¯é)</strong> â å¦æé空ï¼å°åå
¥ç»æ</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> ä¿åæä½ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sqrt-t">
+<span id="singa-tensor-sqrt-t"></span><h4>singa.tensor.sqrt(t)<a class="headerlink" href="#singa-tensor-sqrt-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> tensorï¼å
¶ä¸å
ç´ ä¸º y = sqrt(x)ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-square-t">
+<span id="singa-tensor-square-t"></span><h4>singa.tensor.square(t)<a class="headerlink" href="#singa-tensor-square-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> tensorï¼å
¶ä¸å
ç´ ä¸º y = x * xï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sub-lhs-rhs-ret-none">
+<span id="singa-tensor-sub-lhs-rhs-ret-none"></span><h4>singa.tensor.sub(lhs, rhs, ret=None)<a class="headerlink" href="#singa-tensor-sub-lhs-rhs-ret-none" title="Permalink to this headline">¶</a></h4>
+<p>å
ç´ çº§å«çåæ³ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>lhs (Tensor)</strong> â å·¦æä½tensor</li>
+<li><strong>rhs (Tensor)</strong> â å³æä½tensor</li>
+<li><strong>ret (Tensor, å¯é)</strong> â å¦æé空ï¼å°åå
¥ç»æï¼å¦åï¼å°å建ä¸ä¸ªæ°tensorä¿å</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> åæ¾ç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sum-t-axis-none">
+<span id="singa-tensor-sum-t-axis-none"></span><h4>singa.tensor.sum(t, axis=None)<a class="headerlink" href="#singa-tensor-sum-t-axis-none" title="Permalink to this headline">¶</a></h4>
+<p>å¨ç»å®ç维度ä¸æ±åã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥Tensor</li>
+<li><strong>axis (int, å¯é)</strong> â å¦æ为空ï¼å°å¯¹ææå
ç´ æ±åï¼å¦æç»å®æ°å¼ï¼å°æ²¿ç»å®ç»´åº¦æ±åï¼æ¯å¦ï¼0 - æåæ±åï¼1 - æè¡æ±åã</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> å¦ææ¯å¯¹æ´ä½æ±åï¼è¿åä¸ä¸ªæµ®ç¹æ°ï¼å¦åè¿åtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sum-columns-m">
+<span id="singa-tensor-sum-columns-m"></span><h4>singa.tensor.sum_columns(M)<a class="headerlink" href="#singa-tensor-sum-columns-m" title="Permalink to this headline">¶</a></h4>
+<p>æåæ±åã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>M (Tensor)</strong> â è¾å
¥ç2ç»´tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 产çæ±åç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-sum-rows-m">
+<span id="singa-tensor-sum-rows-m"></span><h4>singa.tensor.sum_rows(M)<a class="headerlink" href="#singa-tensor-sum-rows-m" title="Permalink to this headline">¶</a></h4>
+<p>æè¡æ±åã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>M (Tensor)</strong> â è¾å
¥ç2ç»´tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> 产çæ±åç»æçtensor</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-tanh-t">
+<span id="singa-tensor-tanh-t"></span><h4>singa.tensor.tanh(t)<a class="headerlink" href="#singa-tensor-tanh-t" title="Permalink to this headline">¶</a></h4>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong>tensorï¼å
¶ä¸å
ç´ ä¸º y = tanh(x)ï¼x为tä¸å
ç´ </p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-to-host-t">
+<span id="singa-tensor-to-host-t"></span><h4>singa.tensor.to_host(t)<a class="headerlink" href="#singa-tensor-to-host-t" title="Permalink to this headline">¶</a></h4>
+<p>å°æ°æ®æ·è´å°host设å¤ä¸ã</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-to-numpy-t">
+<span id="singa-tensor-to-numpy-t"></span><h4>singa.tensor.to_numpy(t)<a class="headerlink" href="#singa-tensor-to-numpy-t" title="Permalink to this headline">¶</a></h4>
+<p>æ·è´tensoræ°æ®å°numpyæ°ç»ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>t (Tensor)</strong> â è¾å
¥tensor</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> numpyæ°ç»</p>
+</div>
+<hr class="docutils" />
+<div class="section" id="singa-tensor-uniform-low-high-t">
+<span id="singa-tensor-uniform-low-high-t"></span><h4>singa.tensor.uniform(low, high, t)<a class="headerlink" href="#singa-tensor-uniform-low-high-t" title="Permalink to this headline">¶</a></h4>
+<p>æç
§åååå¸çææ°å¼ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>low (float)</strong> â ä¸ç</li>
+<li><strong>hight (float)</strong> â ä¸å±</li>
+<li><strong>t (Tensor)</strong> â ç»æåå
¥t</li>
+</ul>
+<p><strong>è¿åå¼ï¼</strong> t</p>
+<hr class="docutils" />
+</div>
+</div>
+</div>
+</div>
+
+
+ </div>
+
+ </div>
+ <footer>
+
+ <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
+
+ <a href="layer.html" class="btn btn-neutral float-right" title="å±(Layer)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+
+
+ <a href="device.html" class="btn btn-neutral" title="设å¤(Device)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+
+ </div>
+
+
+ <hr/>
+
+ <div role="contentinfo">
+ <p>
+ © 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.enable(true);
+ });
+ </script>
+
+<div class="rst-versions" 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>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></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
Added: incubator/singa/site/trunk/zh/docs/utils.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/docs/utils.html?rev=1833193&view=auto
==============================================================================
--- incubator/singa/site/trunk/zh/docs/utils.html (added)
+++ incubator/singa/site/trunk/zh/docs/utils.html Fri Jun 8 15:29:00 2018
@@ -0,0 +1,325 @@
+
+
+
+<!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>Utils — 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 rel="next" title="模ååº" href="model_zoo/index.html" />
+ <link rel="prev" title="Snapshot" href="snapshot.html" />
+ <link href="../_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="../_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
+
+
+
+ <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 class="current">
+<li class="toctree-l1"><a class="reference internal" href="../downloads.html">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1 current"><a class="reference internal" href="index.html">ææ¡£</a><ul class="current">
+<li class="toctree-l2"><a class="reference internal" href="installation.html">å®è£
</a></li>
+<li class="toctree-l2"><a class="reference internal" href="software_stack.html">软件æ¶æ</a></li>
+<li class="toctree-l2"><a class="reference internal" href="device.html">设å¤(Device)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tensor.html">å¼ é(Tensor)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="layer.html">å±(Layer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="net.html">åé¦ç½ç»</a></li>
+<li class="toctree-l2"><a class="reference internal" href="initializer.html">åå§åå¨(Initializer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="loss.html">æ失(Loss)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="metric.html">度é(Metric)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="optimizer.html">ä¼åå¨(Optimizer)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="data.html">æ°æ®(Data)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image_tool.html">å¾åå·¥å
·</a></li>
+<li class="toctree-l2"><a class="reference internal" href="snapshot.html">Snapshot</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">Utils</a><ul>
+<li class="toctree-l3"><a class="reference internal" href="#singa-utils-update-progress-progress-info">singa.utils.update_progress(progress, info)</a></li>
+</ul>
+</li>
+<li class="toctree-l2"><a class="reference internal" href="model_zoo/index.html">模ååº</a></li>
+</ul>
+</li>
+</ul>
+<p class="caption"><span class="caption-text">å¼å</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" href="../develop/schedule.html">å¼åæ¶é´è¡¨</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../develop/how-contribute.html">å¦ä½è´¡ç®ç» SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../develop/contribute-code.html">å¦ä½è´¡ç®ä»£ç </a></li>
+</ul>
+<p class="caption"><span class="caption-text">社åº</span></p>
+<ul>
+<li class="toctree-l1"><a class="reference internal" href="../community/source-repository.html">æºä»£ç åº</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/mail-lists.html">项ç®é®ä»¶å表</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/issue-tracking.html">é®é¢è¿½è¸ª</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community/team-list.html">SINGAå¢é</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> »</li>
+
+ <li><a href="index.html">ææ¡£</a> »</li>
+
+ <li>Utils</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="utils">
+<span id="utils"></span><h1>Utils<a class="headerlink" href="#utils" title="Permalink to this headline">¶</a></h1>
+<hr class="docutils" />
+<div class="section" id="singa-utils-update-progress-progress-info">
+<span id="singa-utils-update-progress-progress-info"></span><h2>singa.utils.update_progress(progress, info)<a class="headerlink" href="#singa-utils-update-progress-progress-info" title="Permalink to this headline">¶</a></h2>
+<p>æ¾ç¤ºå®æè¿ç¨æ¡åç¨æ·ä¿¡æ¯ã</p>
+<p><strong>åæ°ï¼</strong></p>
+<ul class="simple">
+<li><strong>progress (float)</strong> â å®æ度[0, 1]ï¼è´æ°è¡¨ç¤ºè¢«ä¸æï¼>=1表示以å®æ</li>
+<li><strong>info (str)</strong> â å¾
å±ç¤ºä¿¡æ¯çå符串</li>
+</ul>
+<hr class="docutils" />
+</div>
+</div>
+
+
+ </div>
+
+ </div>
+ <footer>
+
+ <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
+
+ <a href="model_zoo/index.html" class="btn btn-neutral float-right" title="模ååº" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+
+
+ <a href="snapshot.html" class="btn btn-neutral" title="Snapshot" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+
+ </div>
+
+
+ <hr/>
+
+ <div role="contentinfo">
+ <p>
+ © 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.enable(true);
+ });
+ </script>
+
+<div class="rst-versions" 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>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></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
Modified: incubator/singa/site/trunk/zh/downloads.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/downloads.html?rev=1833193&r1=1833192&r2=1833193&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/downloads.html (original)
+++ incubator/singa/site/trunk/zh/downloads.html Fri Jun 8 15:29:00 2018
@@ -30,9 +30,19 @@
<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="å¼åæ¶é´è¡¨" href="develop/schedule.html" />
+ <link rel="next" title="ææ¡£" href="docs/index.html" />
<link rel="prev" title="SINGA ä¸æææ¡£" href="index.html" />
<link href="_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
@@ -91,6 +101,7 @@
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="docs/index.html">ææ¡£</a></li>
</ul>
<p class="caption"><span class="caption-text">å¼å</span></p>
<ul>
@@ -301,7 +312,7 @@ ASF.</p>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
- <a href="develop/schedule.html" class="btn btn-neutral float-right" title="å¼åæ¶é´è¡¨" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+ <a href="docs/index.html" class="btn btn-neutral float-right" title="ææ¡£" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="index.html" class="btn btn-neutral" title="SINGA ä¸æææ¡£" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
@@ -380,6 +391,15 @@ ASF.</p>
</div>
<a href="http://incubator.apache.org/"> <img src= "_static/apache.png" style="background-color:white;"> </a>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+
</div>
<a href="https://github.com/apache/incubator-singa">
Modified: incubator/singa/site/trunk/zh/genindex.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/genindex.html?rev=1833193&r1=1833192&r2=1833193&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/genindex.html (original)
+++ incubator/singa/site/trunk/zh/genindex.html Fri Jun 8 15:29:00 2018
@@ -32,6 +32,16 @@
<link rel="index" title="Index" href="#" />
<link rel="search" title="Search" href="search.html" />
<link href="_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
@@ -90,6 +100,7 @@
<ul>
<li class="toctree-l1"><a class="reference internal" href="downloads.html">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="docs/index.html">ææ¡£</a></li>
</ul>
<p class="caption"><span class="caption-text">å¼å</span></p>
<ul>
@@ -250,6 +261,15 @@
</div>
<a href="http://incubator.apache.org/"> <img src= "_static/apache.png" style="background-color:white;"> </a>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+
</div>
<a href="https://github.com/apache/incubator-singa">
Modified: incubator/singa/site/trunk/zh/index.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/index.html?rev=1833193&r1=1833192&r2=1833193&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/index.html (original)
+++ incubator/singa/site/trunk/zh/index.html Fri Jun 8 15:29:00 2018
@@ -32,6 +32,16 @@
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="ä¸è½½ SINGA" href="downloads.html" />
<link href="_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
@@ -90,6 +100,7 @@
<ul>
<li class="toctree-l1"><a class="reference internal" href="downloads.html">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="docs/index.html">ææ¡£</a></li>
</ul>
<p class="caption"><span class="caption-text">å¼å</span></p>
<ul>
@@ -347,6 +358,15 @@
</div>
<a href="http://incubator.apache.org/"> <img src= "_static/apache.png" style="background-color:white;"> </a>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+
</div>
<a href="https://github.com/apache/incubator-singa">
Modified: incubator/singa/site/trunk/zh/objects.inv
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/objects.inv?rev=1833193&r1=1833192&r2=1833193&view=diff
==============================================================================
Binary files - no diff available.
Modified: incubator/singa/site/trunk/zh/search.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/search.html?rev=1833193&r1=1833192&r2=1833193&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/search.html (original)
+++ incubator/singa/site/trunk/zh/search.html Fri Jun 8 15:29:00 2018
@@ -31,6 +31,16 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="#" />
<link href="_static/style.css" rel="stylesheet" type="text/css">
+ <!--link href="_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
+ <style>
+ .fa:hover {
+ opacity: 0.7;
+ }
+ .fab:hover {
+ opacity: 0.7;
+ }
+ </style>
@@ -89,6 +99,7 @@
<ul>
<li class="toctree-l1"><a class="reference internal" href="downloads.html">ä¸è½½ SINGA</a></li>
+<li class="toctree-l1"><a class="reference internal" href="docs/index.html">ææ¡£</a></li>
</ul>
<p class="caption"><span class="caption-text">å¼å</span></p>
<ul>
@@ -262,6 +273,15 @@
</div>
<a href="http://incubator.apache.org/"> <img src= "_static/apache.png" style="background-color:white;"> </a>
+
+ <a href="https://github.com/apache/incubator-singa" class="fa fa-github" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://hub.docker.com/r/nusdbsystem/singa/" class="fab fa-docker" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://twitter.com/ApacheSinga" class="fa fa-twitter" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+ <a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate" style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
+
</div>
<a href="https://github.com/apache/incubator-singa">