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 2019/04/21 13:56:45 UTC
svn commit: r1857911 [26/27] - in /incubator/singa/site/trunk: en/
en/_static/ en/_static/css/ en/_static/fonts/ en/_static/fonts/Lato/
en/_static/fonts/RobotoSlab/ en/_static/js/ en/community/ en/develop/
en/docs/ en/docs/model_zoo/ en/docs/model_zoo/...
Modified: incubator/singa/site/trunk/zh/docs/tensor.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/docs/tensor.html?rev=1857911&r1=1857910&r2=1857911&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/docs/tensor.html (original)
+++ incubator/singa/site/trunk/zh/docs/tensor.html Sun Apr 21 13:56:42 2019
@@ -18,15 +18,21 @@
-
-
+ <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
+ <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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/language_data.js"></script>
+
+ <script type="text/javascript" src="../_static/js/theme.js"></script>
-
+
- <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+ <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" />
@@ -44,21 +50,16 @@
}
</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">
+ <div class="wy-side-nav-search" >
@@ -203,17 +204,17 @@
<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>
+<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>
+<li><p><code class="docutils literal notranslate"><span class="pre">tensor_math_cpp.h</span></code> ç¨Cppå®ç°äºCppCPUä¸çåç§æä½</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">tensor_math_cuda.h</span></code> ç¨Cuda (åcuBLAS)å®ç°äºCudaGPUä¸çåç§æä½</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">tensor_math_opencl.h</span></code> ç¨OpenCLå®ç°äºOpenclGPUä¸çåç§æä½</p></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>
+<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>
@@ -249,586 +250,586 @@
<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>
+<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>
+<li><p><strong>shape (list<int>)</strong> â ä¸ä¸ªå表çæ´å½¢æ°æ®ä½ä¸ºTensorçå½¢ç¶ãå¦æshape没ææå®ï¼å°ä¼å建ä¸ä¸ªä¼ªTensorã</p></li>
+<li><p><strong>device</strong> â swig转åç使ç¨è®¾å¤æ¨¡ååçDeviceå®ä¾ã å¦æ为Noneï¼é»è®¤çCPU设å¤å°ä¼è¢«ä½¿ç¨ã</p></li>
+<li><p><strong>dtype</strong> â æ°æ®ç±»åã ç®åï¼å¤§å¤æ°æä½ä»
æ¯ækFloat32ã</p></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>
+<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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 被ä½ä¸ºä¸åå å°åtensorçTensor</p></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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 被ä½ä¸ºè¡å å°åtensorçTensor</p></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>
+<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>
+<li><p><strong>p (float)</strong> â 以æ¦çpåæ ·ä¸ä¸ªå
ç´ ä¸º1</p></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>
+<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>
+<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>
+<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>
+<li><p><strong>t (Tensor)</strong> â æºTensor</p></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>
+<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>
+<li><p><strong>np_array</strong> â æºnumpyæ°ç»</p></li>
+<li><p><strong>offset (int)</strong> â ç®æ å移</p></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>
+<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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorçåé¿ç¸å</p></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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorçè¡é¿ç¸å</p></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>
+<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>
+<li><p><strong>mean (float)</strong> â åå¸çåå¼</p></li>
+<li><p><strong>std (float)</strong> â åå¸çæ åå·®</p></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>
+<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>
+<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>
+<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>
+<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>
+<h4>memsize()<a class="headerlink" href="#memsize" title="Permalink to this headline">¶</a></h4>
<ul class="simple">
-<li><strong>è¿åå¼ï¼</strong> 被åé
ç»è¯¥tensorçBytesæ°</li>
+<li><p><strong>è¿åå¼ï¼</strong> 被åé
ç»è¯¥tensorçBytesæ°</p></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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensoråé¿çé¿</p></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>
+<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>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensorï¼åæºtensorè¡é¿çé¿</p></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>
+<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>
+<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>
+<li><p><strong>t (Tensor)</strong> â éè¦éç½®çtensor</p></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>
+<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>
+<li><p><strong>x(float)</strong> - å¾
设å®çå¼</p></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>
+<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>
+<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>
+<li><p><strong>device</strong> - ä»CudaGPU/CppCPU/OpenclGPU转æ¢çswig设å¤</p></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>
+<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>
+<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>
+<li><p><strong>low (float)</strong> â ä¸ç</p></li>
+<li><p><strong>high (float)</strong> â ä¸ç</p></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>
+<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>
+<li><p><strong>t(Tensor)</strong> - è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>lhs (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>rhs (Tensor)</strong> â å³æä½tensor</p></li>
+<li><p><strong>ret (Tensor, optional)</strong> â å¦æä¸æ¯ç©ºï¼ ç»æå°è¢«ä¿åå¨å
¶ä¸ï¼å¦åï¼ä¸ä¸ªæ°tensorä¼è¢«å建以ä¿åç»æã</p></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>
+<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>
+<li><p><strong>alpha (float)</strong> â vçç³»æ°</p></li>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensor</p></li>
+<li><p><strong>beta (float)</strong> â Mçç³»æ°</p></li>
+<li><p><strong>M (Tensor)</strong> â 2ç»´tensor</p></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>
+<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>
+<li><p><strong>alpha (float)</strong> â vçç³»æ°</p></li>
+<li><p><strong>v (Tensor)</strong> â 1ç»´tensor</p></li>
+<li><p><strong>beta (float)</strong> â Mçç³»æ°</p></li>
+<li><p><strong>M (Tensor)</strong> â 2ç»´tensor</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥Tensor</p></li>
+<li><p><strong>axis (int, optional)</strong> â å¦æ为空ï¼åææå
ç´ çå¹³åå¼ï¼å¦åï¼åç»å®ç»´åº¦çå
ç´ å¹³åå¼ã0表示ååå¼ï¼1表示è¡åå¼ã</p></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>
+<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>
+<li><p><strong>alpha (float)</strong> â xçç³»æ°</p></li>
+<li><p><strong>x (Tensor)</strong> â 被å çtensor</p></li>
+<li><p><strong>y (Tensor)</strong> â åtensor</p></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>
+<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>
+<li><p><strong>p (float)</strong> â each element is 1 with probability p; and 0 with 1 - p</p></li>
+<li><p><strong>t (Tensor)</strong> â the results are put into t</p></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>
+<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>
+<li><p><strong>dst (Tensor)</strong> â ç®æ Tensor</p></li>
+<li><p><strong>src (Tensor)</strong> â æºTensor</p></li>
+<li><p><strong>size (int)</strong> â æ·è´å
ç´ æ°ç®</p></li>
+<li><p><strong>dst_offset (int)</strong> â æ·è´å°dstå
ç´ å¨dstçèµ·å§å移</p></li>
+<li><p><strong>src_offset (int)</strong> â å¾
æ·è´çå
ç´ å¨srcä¸çèµ·å§å移</p></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>
+<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>
+<li><p><strong>lhs (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>rhs (Tensor)</strong> â å³æä½tensor</p></li>
+<li><p><strong>ret (Tensor, optional)</strong> â å¦æé空ï¼å°æç»æåå
¥ï¼å¦åï¼å建ä¸ä¸ªæ°tensor并å°ç»æåå
¥</p></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>
+<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>
+<li><p><strong>lhs (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>rhs (Tensor)</strong> â å³æä½tensor</p></li>
+<li><p><strong>ret (Tensor, optional)</strong> â å¦æé空ï¼å°æç»æåå
¥ï¼å¦åï¼å建ä¸ä¸ªæ°tensor并å°ç»æåå
¥</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>np_array</strong> â numpyæ°ç»</p></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>
+<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>
+<li><p><strong>mean (float)</strong> â é«æ¯åå¸çåå¼</p></li>
+<li><p><strong>std (float)</strong> â é«æ¯åå¸çæ åå·®</p></li>
+<li><p><strong>t (Tensor)</strong> â ç»æ被åå
¥t</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â å·¦æä½æ°</p></li>
+<li><p><strong>x (Tensor or float)</strong> â å³æä½æ°</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>x (Tensor or float)</strong> â å³æä½tensorææ°</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>A (Tensor)</strong> â 2ç»´Tensor</p></li>
+<li><p><strong>B (Tensor)</strong> â å¦æBæ¯1ç»´Tensor, å°è°ç¨GEMVåç©éµ-åéä¹æ³ï¼å¦åå°è°ç¨GEMMã</p></li>
+<li><p><strong>C (Tensor, optional)</strong> â åå¨ç»æï¼å¦æ为空ï¼å°å建æ°tensoråå¨ç»æã</p></li>
+<li><p><strong>alpha (float)</strong> â A * B çç³»æ°</p></li>
+<li><p><strong>beta (float)</strong> â C çç³»æ°</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></li>
+<li><p><strong>x (float or Tensor)</strong> â å¦æxæ¯æµ®ç¹æ° y[i] = t[i]^x; å¦å y[i]= t[i]^x[i]</p></li>
+<li><p><strong>out (None or Tensor)</strong> â å¦æé空ï¼å°åå
¥ç»æï¼å¦åï¼å°å建ä¸ä¸ªæ°tensorä¿åç»æã</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â å¾
æ¹åå½¢ç¶çtensor</p></li>
+<li><p><strong>s (list<int>)</strong> â æ°å½¢ç¶ï¼ä½ç§¯ååtensorä½ç§¯ç¸å</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥1ç»´æ2ç»´tensor</p></li>
+<li><p><strong>out (Tensor, å¯é)</strong> â å¦æé空ï¼å°åå
¥ç»æ</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>lhs (Tensor)</strong> â å·¦æä½tensor</p></li>
+<li><p><strong>rhs (Tensor)</strong> â å³æä½tensor</p></li>
+<li><p><strong>ret (Tensor, å¯é)</strong> â å¦æé空ï¼å°åå
¥ç»æï¼å¦åï¼å°å建ä¸ä¸ªæ°tensorä¿å</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥Tensor</p></li>
+<li><p><strong>axis (int, å¯é)</strong> â å¦æ为空ï¼å°å¯¹ææå
ç´ æ±åï¼å¦æç»å®æ°å¼ï¼å°æ²¿ç»å®ç»´åº¦æ±åï¼æ¯å¦ï¼0 - æåæ±åï¼1 - æè¡æ±åã</p></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>
+<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>
+<li><p><strong>M (Tensor)</strong> â è¾å
¥ç2ç»´tensor</p></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>
+<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>
+<li><p><strong>M (Tensor)</strong> â è¾å
¥ç2ç»´tensor</p></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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></li>
</ul>
-<p><strong>è¿åå¼ï¼</strong>tensorï¼å
¶ä¸å
ç´ ä¸º y = tanh(x)ï¼x为tä¸å
ç´ </p>
+<p>**è¿åå¼ï¼**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>
+<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>
+<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>
+<li><p><strong>t (Tensor)</strong> â è¾å
¥tensor</p></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>
+<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>
+<li><p><strong>low (float)</strong> â ä¸ç</p></li>
+<li><p><strong>hight (float)</strong> â ä¸å±</p></li>
+<li><p><strong>t (Tensor)</strong> â ç»æåå
¥t</p></li>
</ul>
<p><strong>è¿åå¼ï¼</strong> t</p>
<hr class="docutils" />
@@ -848,7 +849,7 @@
<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>
+ <a href="device.html" class="btn btn-neutral float-left" title="设å¤(Device)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
@@ -857,7 +858,7 @@
<div role="contentinfo">
<p>
- © Copyright 2019 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..
+ © Copyright 2019 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>
@@ -874,36 +875,17 @@
-
-
- <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>
Modified: incubator/singa/site/trunk/zh/docs/utils.html
URL: http://svn.apache.org/viewvc/incubator/singa/site/trunk/zh/docs/utils.html?rev=1857911&r1=1857910&r2=1857911&view=diff
==============================================================================
--- incubator/singa/site/trunk/zh/docs/utils.html (original)
+++ incubator/singa/site/trunk/zh/docs/utils.html Sun Apr 21 13:56:42 2019
@@ -18,15 +18,21 @@
-
-
+ <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
+ <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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/language_data.js"></script>
+
+ <script type="text/javascript" src="../_static/js/theme.js"></script>
-
+
- <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+ <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" />
@@ -44,21 +50,16 @@
}
</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">
+ <div class="wy-side-nav-search" >
@@ -206,27 +207,26 @@
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at<div class="highlight-default notranslate"><div class="highlight"><pre><span></span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="o">/</span><span class="n">licenses</span><span class="o">/</span><span class="n">LICENSE</span><span class="o">-</span><span class="mf">2.0</span>
+ with the License. You may obtain a copy of the License at
-<span class="n">Unless</span> <span class="n">required</span> <span class="n">by</span> <span class="n">applicable</span> <span class="n">law</span> <span class="ow">or</span> <span class="n">agreed</span> <span class="n">to</span> <span class="ow">in</span> <span class="n">writing</span><span class="p">,</span>
-<span class="n">software</span> <span class="n">distributed</span> <span class="n">under</span> <span class="n">the</span> <span class="n">License</span> <span class="ow">is</span> <span class="n">distributed</span> <span class="n">on</span> <span class="n">an</span>
-<span class="s2">"AS IS"</span> <span class="n">BASIS</span><span class="p">,</span> <span class="n">WITHOUT</span> <span class="n">WARRANTIES</span> <span class="n">OR</span> <span class="n">CONDITIONS</span> <span class="n">OF</span> <span class="n">ANY</span>
-<span class="n">KIND</span><span class="p">,</span> <span class="n">either</span> <span class="n">express</span> <span class="ow">or</span> <span class="n">implied</span><span class="o">.</span> <span class="n">See</span> <span class="n">the</span> <span class="n">License</span> <span class="k">for</span> <span class="n">the</span>
-<span class="n">specific</span> <span class="n">language</span> <span class="n">governing</span> <span class="n">permissions</span> <span class="ow">and</span> <span class="n">limitations</span>
-<span class="n">under</span> <span class="n">the</span> <span class="n">License</span><span class="o">.</span>
-</pre></div>
-</div>
-<p>â></p>
-<div class="section" id="utils">
-<span id="utils"></span><h1>Utils<a class="headerlink" href="#utils" title="Permalink to this headline">¶</a></h1>
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><div class="section" id="utils">
+<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>
+<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>
+<li><p><strong>progress (float)</strong> â å®æ度[0, 1]ï¼è´æ°è¡¨ç¤ºè¢«ä¸æï¼>=1表示以å®æ</p></li>
+<li><p><strong>info (str)</strong> â å¾
å±ç¤ºä¿¡æ¯çå符串</p></li>
</ul>
<hr class="docutils" />
</div>
@@ -243,7 +243,7 @@
<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>
+ <a href="snapshot.html" class="btn btn-neutral float-left" title="Snapshot" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
@@ -252,7 +252,7 @@
<div role="contentinfo">
<p>
- © Copyright 2019 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..
+ © Copyright 2019 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>
@@ -269,36 +269,17 @@
-
-
- <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>