| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.13"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>mxnet: /work/mxnet/3rdparty/mshadow/mshadow/extension/broadcast.h Source File</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectalign" style="padding-left: 0.5em;"> |
| <div id="projectname">mxnet |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| </script> |
| <div id="main-nav"></div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_3e48ced36faa4eaa1b41f6d960bf0edb.html">mshadow</a></li><li class="navelem"><a class="el" href="dir_00b035bb2ad81894e6ad291054ea5f82.html">mshadow</a></li><li class="navelem"><a class="el" href="dir_9bd2a322a448ef0abedd860cb1ca3721.html">extension</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">broadcast.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="broadcast_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * under the License.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#ifndef MSHADOW_EXTENSION_BROADCAST_H_</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#define MSHADOW_EXTENSION_BROADCAST_H_</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "../extension.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespacemshadow.html">mshadow</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>expr {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> dimdst, <span class="keywordtype">int</span> dimdst_m_cast></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Broadcast1DExp.html"> 40</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp</a>:</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">public</span> <a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html">MakeTensorExp</a><Broadcast1DExp<SrcExp, DType, dimdst, dimdst_m_cast>,</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  SrcExp, dimdst, DType> {</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307"> 44</a></span>  <span class="keyword">const</span> SrcExp &<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a7e5c269cd15f82a75b8eb885840c386a"> 46</a></span>  <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a7e5c269cd15f82a75b8eb885840c386a">Broadcast1DExp</a>(<span class="keyword">const</span> SrcExp &src, <a class="code" href="structmshadow_1_1Shape.html">Shape<dimdst></a> shape)</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  : src_(src) {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  this-><a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">shape_</a> = shape;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> dimdst></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html"> 61</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">BroadcastScalarExp</a>:</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">public</span> <a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html">MakeTensorExp</a><BroadcastScalarExp<SrcExp, DType, dimdst>,</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  SrcExp, dimdst, DType> {</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#ac34aedfd076ea9592c7d60910324d8b7"> 65</a></span>  <span class="keyword">const</span> SrcExp &<a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#ac34aedfd076ea9592c7d60910324d8b7">src_</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#a87f6bd1b452af63fb4ebad8a1d9c20b1"> 67</a></span>  <a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#a87f6bd1b452af63fb4ebad8a1d9c20b1">BroadcastScalarExp</a>(<span class="keyword">const</span> SrcExp &src, <a class="code" href="structmshadow_1_1Shape.html">Shape<dimdst></a> shape)</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  : src_(src) {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  this-><a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">shape_</a> = shape;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> };</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">template</span><<span class="keywordtype">int</span> dimcast, <span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType,</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">int</span> etype, <span class="keywordtype">int</span> dimdst></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">inline</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp</a><SrcExp, DType, dimdst, dimdst - dimcast></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="namespacemshadow_1_1expr.html#a687d5b08a0f691530fdf157e9a9cfe58"> 87</a></span> <a class="code" href="namespacemshadow_1_1expr.html#a687d5b08a0f691530fdf157e9a9cfe58">broadcast</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Exp.html">expr::Exp<SrcExp, DType, etype></a> &src, <a class="code" href="structmshadow_1_1Shape.html">Shape<dimdst></a> shape) {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="structmshadow_1_1expr_1_1TypeCheckPass.html">TypeCheckPass<dimcast < dimdst && ExpInfo<SrcExp>::kDim</a> == 1></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  ::Error_Expression_Does_Not_Meet_Dimension_Req();</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">typedef</span> <a class="code" href="structmshadow_1_1expr_1_1ShapeCheck.html">ShapeCheck<1, SrcExp></a> ShapeCheckDim1SrcExp;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  CHECK_EQ(ShapeCheckDim1SrcExp::Check(src.<a class="code" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a>())[0], shape[dimcast])</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  << <span class="stringliteral">"broadcast, shape mismatch"</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp</a><SrcExp, DType, dimdst,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  dimdst - dimcast>(src.<a class="code" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a>(), shape);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> etype, <span class="keywordtype">int</span> dimdst></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">inline</span> <a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">BroadcastScalarExp<SrcExp, DType, dimdst></a></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="namespacemshadow_1_1expr.html#ae2b0f54a2d92fb35083b6da1cd835f3f"> 109</a></span> <a class="code" href="namespacemshadow_1_1expr.html#ae2b0f54a2d92fb35083b6da1cd835f3f">broadcast_scalar</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Exp.html">expr::Exp<SrcExp, DType, etype></a> &src, <a class="code" href="structmshadow_1_1Shape.html">Shape<dimdst></a> shape) {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="structmshadow_1_1expr_1_1TypeCheckPass.html">TypeCheckPass<ExpInfo<SrcExp>::kDim</a> == 1></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  ::Error_Expression_Does_Not_Meet_Dimension_Req();</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">typedef</span> <a class="code" href="structmshadow_1_1expr_1_1ShapeCheck.html">ShapeCheck<1, SrcExp></a> ShapeCheckDim1SrcExp;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  CHECK_EQ(ShapeCheckDim1SrcExp::Check(src.<a class="code" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a>())[0], 1U)</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  << <span class="stringliteral">"broadcast_scalar, source need to be scalar expression"</span>;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">BroadcastScalarExp<SrcExp, DType, dimdst></a>(src.<a class="code" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a>(), shape);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">// short cut functions</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> etype></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">inline</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp<SrcExp, DType, 2, 1></a></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="namespacemshadow_1_1expr.html#aa0bdb885559ed84e56cd61e731c8162c"> 127</a></span> <a class="code" href="namespacemshadow_1_1expr.html#aa0bdb885559ed84e56cd61e731c8162c">repmat</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Exp.html">expr::Exp<SrcExp, DType, etype></a> &src, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> nrow) {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> broadcast<1></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  (src, <a class="code" href="namespacemshadow.html#ad2853583180a7dbe9cbf6b0e15ae60ef">Shape2</a>(nrow, <a class="code" href="structmshadow_1_1expr_1_1ShapeCheck.html">ShapeCheck<1, SrcExp>::Check</a>(src.self())[0]));</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">//----------------------</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment">// Execution plan</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">//----------------------</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> dimdst, <span class="keywordtype">int</span> dimdst_m_cast></div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html"> 135</a></span> <span class="keyword">struct </span><a class="code" href="classmshadow_1_1expr_1_1Plan.html">Plan</a><<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp</a><SrcExp, DType, dimdst, dimdst_m_cast>, DType> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#ac969c5d2878eb58cfa6e8c802ee92618"> 137</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> dimcast = dimdst - dimdst_m_cast;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#a45e380564f6b98a54310c549e5297eb0"> 138</a></span>  <span class="keyword">explicit</span> <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#a45e380564f6b98a54310c549e5297eb0">Plan</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp<SrcExp, DType, dimdst, dimdst_m_cast></a> &e)</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  : <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>(<a class="code" href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">MakePlan</a>(e.<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>)),</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  ystride_(e.<a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">shape_</a>.ProdShape(dimcast + 1, dimdst - 1)),</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  length_(e.<a class="code" href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">shape_</a>[dimcast]) {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="structmshadow_1_1expr_1_1TypeCheckPass.html">TypeCheckPass<dimcast != dimdst - 1></a></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <a class="code" href="structmshadow_1_1expr_1_1TypeCheckPass.html"> ::Error_Expression_Does_Not_Meet_Dimension_Req</a>();</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#acc94eb08f48472b71ac434a1cef67aa0"> 145</a></span>  <a class="code" href="3rdparty_2mshadow_2mshadow_2base_8h.html#af205b8ab4d8733133d590df7d2639d69">MSHADOW_XINLINE</a> DType <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#acc94eb08f48472b71ac434a1cef67aa0">Eval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>.Eval(0, (y / ystride_) % length_);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="classmshadow_1_1expr_1_1Plan.html">expr::Plan<SrcExp, DType></a> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> ystride_, length_;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> };</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> dimdst></div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html"> 156</a></span> <span class="keyword">struct </span><a class="code" href="classmshadow_1_1expr_1_1Plan.html">Plan</a><<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp</a><SrcExp, DType, dimdst, 1>, DType>{</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#a32210acea340aa6282e76c43e385fade"> 158</a></span>  <span class="keyword">explicit</span> <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#a32210acea340aa6282e76c43e385fade">Plan</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html">Broadcast1DExp<SrcExp, DType, dimdst, 1></a> &e)</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  : <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>(<a class="code" href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">MakePlan</a>(e.<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>)) {}</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#aceec6e3d6a4667abd498a298d1551b6d"> 160</a></span>  <a class="code" href="3rdparty_2mshadow_2mshadow_2base_8h.html#af205b8ab4d8733133d590df7d2639d69">MSHADOW_XINLINE</a> DType <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#aceec6e3d6a4667abd498a298d1551b6d">Eval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>.Eval(0, x);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classmshadow_1_1expr_1_1Plan.html">expr::Plan<SrcExp, DType></a> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> };</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> dimdst></div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html"> 170</a></span> <span class="keyword">struct </span><a class="code" href="classmshadow_1_1expr_1_1Plan.html">Plan</a><<a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">BroadcastScalarExp</a><SrcExp, DType, dimdst>, DType>{</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#a6b0105078cd29c5542b2dfd392c7f11c"> 172</a></span>  <span class="keyword">explicit</span> <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#a6b0105078cd29c5542b2dfd392c7f11c">Plan</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">BroadcastScalarExp<SrcExp, DType, dimdst></a> &e)</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  : <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>(<a class="code" href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">MakePlan</a>(e.<a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>)) {}</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#ad47efb138c98220d5b3d52aa8ff85346"> 174</a></span>  <a class="code" href="3rdparty_2mshadow_2mshadow_2base_8h.html#af205b8ab4d8733133d590df7d2639d69">MSHADOW_XINLINE</a> DType <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#ad47efb138c98220d5b3d52aa8ff85346">Eval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x)<span class="keyword"> const </span>{</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>.Eval(0, 0);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="classmshadow_1_1expr_1_1Plan.html">expr::Plan<SrcExp, DType></a> <a class="code" href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">src_</a>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> };</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> } <span class="comment">// namespace expr</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> } <span class="comment">// namespace mshadow</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif // MSHADOW_EXTENSION_BROADCAST_H_</span></div><div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4_html_aceec6e3d6a4667abd498a298d1551b6d"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#aceec6e3d6a4667abd498a298d1551b6d">mshadow::expr::Plan< Broadcast1DExp< SrcExp, DType, dimdst, 1 >, DType >::Eval</a></div><div class="ttdeci">MSHADOW_XINLINE DType Eval(index_t y, index_t x) const</div><div class="ttdef"><b>Definition:</b> broadcast.h:160</div></div> |
| <div class="ttc" id="namespacemshadow_1_1expr_html_aa0bdb885559ed84e56cd61e731c8162c"><div class="ttname"><a href="namespacemshadow_1_1expr.html#aa0bdb885559ed84e56cd61e731c8162c">mshadow::expr::repmat</a></div><div class="ttdeci">Broadcast1DExp< SrcExp, DType, 2, 1 > repmat(const expr::Exp< SrcExp, DType, etype > &src, index_t nrow)</div><div class="ttdoc">a expression that replicate a 1 dimension tensor for nrow times </div><div class="ttdef"><b>Definition:</b> broadcast.h:127</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Broadcast1DExp_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1Broadcast1DExp.html">mshadow::expr::Broadcast1DExp</a></div><div class="ttdoc">broadcast Tensor1D into a higher dimension Tensor input: Tensor<Device,1>: ishape[0] output: Tensor<D...</div><div class="ttdef"><b>Definition:</b> broadcast.h:40</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4_html_ad47efb138c98220d5b3d52aa8ff85346"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#ad47efb138c98220d5b3d52aa8ff85346">mshadow::expr::Plan< BroadcastScalarExp< SrcExp, DType, dimdst >, DType >::Eval</a></div><div class="ttdeci">MSHADOW_XINLINE DType Eval(index_t y, index_t x) const</div><div class="ttdef"><b>Definition:</b> broadcast.h:174</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Broadcast1DExp_html_a7e5c269cd15f82a75b8eb885840c386a"><div class="ttname"><a href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a7e5c269cd15f82a75b8eb885840c386a">mshadow::expr::Broadcast1DExp::Broadcast1DExp</a></div><div class="ttdeci">Broadcast1DExp(const SrcExp &src, Shape< dimdst > shape)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> broadcast.h:46</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Exp_html_adb7e4afd0baed78d66cff87de0a6621f"><div class="ttname"><a href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">mshadow::expr::Exp::self</a></div><div class="ttdeci">const SubType & self(void) const</div><div class="ttdef"><b>Definition:</b> expression.h:82</div></div> |
| <div class="ttc" id="classmshadow_1_1expr_1_1Plan_html"><div class="ttname"><a href="classmshadow_1_1expr_1_1Plan.html">mshadow::expr::Plan</a></div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:58</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1TypeCheckPass_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1TypeCheckPass.html">mshadow::expr::TypeCheckPass</a></div><div class="ttdoc">used to help static type check </div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:330</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1BroadcastScalarExp_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1BroadcastScalarExp.html">mshadow::expr::BroadcastScalarExp</a></div><div class="ttdoc">broadcast scalar into a higher dimension Tensor input: Tensor<Device,1>: ishape = {1} output: Tensor<...</div><div class="ttdef"><b>Definition:</b> broadcast.h:61</div></div> |
| <div class="ttc" id="structmshadow_1_1Shape_html"><div class="ttname"><a href="structmshadow_1_1Shape.html">mshadow::Shape</a></div><div class="ttdoc">shape of a tensor </div><div class="ttdef"><b>Definition:</b> tensor.h:53</div></div> |
| <div class="ttc" id="namespacemshadow_1_1expr_html_ae2b0f54a2d92fb35083b6da1cd835f3f"><div class="ttname"><a href="namespacemshadow_1_1expr.html#ae2b0f54a2d92fb35083b6da1cd835f3f">mshadow::expr::broadcast_scalar</a></div><div class="ttdeci">BroadcastScalarExp< SrcExp, DType, dimdst > broadcast_scalar(const expr::Exp< SrcExp, DType, etype > &src, Shape< dimdst > shape)</div><div class="ttdoc">a expression that replicate a scalar tensor to target dimension. </div><div class="ttdef"><b>Definition:</b> broadcast.h:109</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4_html_a32210acea340aa6282e76c43e385fade"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_011_01_4_00_01DType_01_4.html#a32210acea340aa6282e76c43e385fade">mshadow::expr::Plan< Broadcast1DExp< SrcExp, DType, dimdst, 1 >, DType >::Plan</a></div><div class="ttdeci">Plan(const Broadcast1DExp< SrcExp, DType, dimdst, 1 > &e)</div><div class="ttdef"><b>Definition:</b> broadcast.h:158</div></div> |
| <div class="ttc" id="3rdparty_2mshadow_2mshadow_2base_8h_html_af205b8ab4d8733133d590df7d2639d69"><div class="ttname"><a href="3rdparty_2mshadow_2mshadow_2base_8h.html#af205b8ab4d8733133d590df7d2639d69">MSHADOW_XINLINE</a></div><div class="ttdeci">#define MSHADOW_XINLINE</div><div class="ttdef"><b>Definition:</b> base.h:230</div></div> |
| <div class="ttc" id="namespacemshadow_html_adcbc2e1131386fccb1474b0bdf045926"><div class="ttname"><a href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">mshadow::index_t</a></div><div class="ttdeci">int32_t index_t</div><div class="ttdoc">type that will be used for index </div><div class="ttdef"><b>Definition:</b> base.h:343</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Broadcast1DExp_html_a377af1a5b366bd6d99f37088674ea307"><div class="ttname"><a href="structmshadow_1_1expr_1_1Broadcast1DExp.html#a377af1a5b366bd6d99f37088674ea307">mshadow::expr::Broadcast1DExp::src_</a></div><div class="ttdeci">const SrcExp & src_</div><div class="ttdoc">source operand </div><div class="ttdef"><b>Definition:</b> broadcast.h:44</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4_html_a6b0105078cd29c5542b2dfd392c7f11c"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01BroadcastScalarExp_3_01SrcExp_00_01DType_00_01dimdst_01_4_00_01DType_01_4.html#a6b0105078cd29c5542b2dfd392c7f11c">mshadow::expr::Plan< BroadcastScalarExp< SrcExp, DType, dimdst >, DType >::Plan</a></div><div class="ttdeci">Plan(const BroadcastScalarExp< SrcExp, DType, dimdst > &e)</div><div class="ttdef"><b>Definition:</b> broadcast.h:172</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1BroadcastScalarExp_html_ac34aedfd076ea9592c7d60910324d8b7"><div class="ttname"><a href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#ac34aedfd076ea9592c7d60910324d8b7">mshadow::expr::BroadcastScalarExp::src_</a></div><div class="ttdeci">const SrcExp & src_</div><div class="ttdoc">source operand </div><div class="ttdef"><b>Definition:</b> broadcast.h:65</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1ShapeCheck_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1ShapeCheck.html">mshadow::expr::ShapeCheck</a></div><div class="ttdoc">runtime shape checking template get the shape of an expression, report error if shape mismatch ...</div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:364</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4_html_a45e380564f6b98a54310c549e5297eb0"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#a45e380564f6b98a54310c549e5297eb0">mshadow::expr::Plan< Broadcast1DExp< SrcExp, DType, dimdst, dimdst_m_cast >, DType >::Plan</a></div><div class="ttdeci">Plan(const Broadcast1DExp< SrcExp, DType, dimdst, dimdst_m_cast > &e)</div><div class="ttdef"><b>Definition:</b> broadcast.h:138</div></div> |
| <div class="ttc" id="namespacemshadow_html_ad2853583180a7dbe9cbf6b0e15ae60ef"><div class="ttname"><a href="namespacemshadow.html#ad2853583180a7dbe9cbf6b0e15ae60ef">mshadow::Shape2</a></div><div class="ttdeci">MSHADOW_XINLINE Shape< 2 > Shape2(index_t s0, index_t s1)</div><div class="ttdoc">construct a two dimension shape, stride will equal s0 </div><div class="ttdef"><b>Definition:</b> tensor.h:216</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4_html_acc94eb08f48472b71ac434a1cef67aa0"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01Broadcast1DExp_3_01SrcExp_00_01DType_00_01dimdst_00_01dimdst__m__cast_01_4_00_01DType_01_4.html#acc94eb08f48472b71ac434a1cef67aa0">mshadow::expr::Plan< Broadcast1DExp< SrcExp, DType, dimdst, dimdst_m_cast >, DType >::Eval</a></div><div class="ttdeci">MSHADOW_XINLINE DType Eval(index_t y, index_t x) const</div><div class="ttdef"><b>Definition:</b> broadcast.h:145</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1BroadcastScalarExp_html_a87f6bd1b452af63fb4ebad8a1d9c20b1"><div class="ttname"><a href="structmshadow_1_1expr_1_1BroadcastScalarExp.html#a87f6bd1b452af63fb4ebad8a1d9c20b1">mshadow::expr::BroadcastScalarExp::BroadcastScalarExp</a></div><div class="ttdeci">BroadcastScalarExp(const SrcExp &src, Shape< dimdst > shape)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> broadcast.h:67</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1Exp_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1Exp.html">mshadow::expr::Exp</a></div><div class="ttdoc">defines how expression exp can be evaluated and stored into dst </div><div class="ttdef"><b>Definition:</b> expression.h:79</div></div> |
| <div class="ttc" id="namespacemshadow_1_1expr_html_aefd008a0bf012dc8fb99d9bbcca7a078"><div class="ttname"><a href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">mshadow::expr::MakePlan</a></div><div class="ttdeci">Plan< BinaryMapExp< OP, TA, TB, DType, etype >, DType > MakePlan(const BinaryMapExp< OP, TA, TB, DType, etype > &e)</div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:239</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1MakeTensorExp_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1MakeTensorExp.html">mshadow::expr::MakeTensorExp</a></div><div class="ttdoc">a general class that allows extension that makes tensors of some shape </div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:43</div></div> |
| <div class="ttc" id="namespacemshadow_html"><div class="ttname"><a href="namespacemshadow.html">mshadow</a></div><div class="ttdoc">overloaded + operator between half_t and bf16_t </div><div class="ttdef"><b>Definition:</b> base.h:334</div></div> |
| <div class="ttc" id="structmshadow_1_1expr_1_1MakeTensorExp_html_a2a2f9b6b828035ea38bfb8620db42a82"><div class="ttname"><a href="structmshadow_1_1expr_1_1MakeTensorExp.html#a2a2f9b6b828035ea38bfb8620db42a82">mshadow::expr::MakeTensorExp< Broadcast1DExp< SrcExp, DType, dimdst, dimdst_m_cast >, SrcExp, dimdst, DType >::shape_</a></div><div class="ttdeci">Shape< dim > shape_</div><div class="ttdoc">the shape of this expression </div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:47</div></div> |
| <div class="ttc" id="namespacemshadow_1_1expr_html_a687d5b08a0f691530fdf157e9a9cfe58"><div class="ttname"><a href="namespacemshadow_1_1expr.html#a687d5b08a0f691530fdf157e9a9cfe58">mshadow::expr::broadcast</a></div><div class="ttdeci">Broadcast1DExp< SrcExp, DType, dimdst, dimdst - dimcast > broadcast(const expr::Exp< SrcExp, DType, etype > &src, Shape< dimdst > shape)</div><div class="ttdoc">a expression that replicate a 1 dimension tensor in dimension dimcast </div><div class="ttdef"><b>Definition:</b> broadcast.h:87</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Wed Jun 8 2022 23:30:29 for mxnet by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.13 |
| </small></address> |
| </body> |
| </html> |