| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>mxnet: /work/mxnet/3rdparty/mshadow/mshadow/extension/slice.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.17 --> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| /* @license-end */ |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| /* @license-end */</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">slice.h</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="slice_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="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef MSHADOW_EXTENSION_SLICE_H_</span></div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define MSHADOW_EXTENSION_SLICE_H_</span></div> |
| <div class="line"><a name="l00026"></a><span class="lineno"> 26</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>  </div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacemshadow.html">mshadow</a> {</div> |
| <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>expr {</div> |
| <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">int</span> srcdim, <span class="keywordtype">int</span> dimsrc_m_slice></div> |
| <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html"> 41</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a> : <span class="keyword">public</span> <a class="code" href="structmshadow_1_1TRValue.html">TRValue</a><SliceExp<SrcExp,</div> |
| <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  Device, DType,</div> |
| <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  srcdim, dimsrc_m_slice>,</div> |
| <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  Device, srcdim, DType> {</div> |
| <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8"> 45</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">dimslice</a> = srcdim - dimsrc_m_slice;</div> |
| <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662"> 46</a></span>  <span class="keyword">const</span> SrcExp &<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662">src_</a>;</div> |
| <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#a15f0513c82a6ed59998bc8cd0ca78caa"> 47</a></span>  <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a15f0513c82a6ed59998bc8cd0ca78caa">ch_begin_</a>;</div> |
| <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#ab34a7fe4b0423ed76459051c8131b30b"> 48</a></span>  <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ab34a7fe4b0423ed76459051c8131b30b">ch_old_</a>;</div> |
| <div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8"> 49</a></span>  <a class="code" href="structmshadow_1_1Shape.html">Shape<srcdim></a> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a>;</div> |
| <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#a100d204b87f0373c4f8c94407d4ef348"> 50</a></span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a100d204b87f0373c4f8c94407d4ef348">SliceExp</a>(<span class="keyword">const</span> SrcExp &src, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> begin, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> end)</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  : <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662">src_</a>(src), <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a15f0513c82a6ed59998bc8cd0ca78caa">ch_begin_</a>(begin) {</div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a> = <a class="code" href="structmshadow_1_1expr_1_1ShapeCheck.html#af44e6a3b97cf3b245bc1b7ad4cacb306">ShapeCheck<srcdim, SrcExp>::Check</a>(<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662">src_</a>);</div> |
| <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ab34a7fe4b0423ed76459051c8131b30b">ch_old_</a> = <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a>[<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">dimslice</a>];</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  CHECK(begin <= <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a>[<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">dimslice</a>] && end <= <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a>[<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">dimslice</a>])</div> |
| <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  << <span class="stringliteral">"The slice went out of range. "</span>;</div> |
| <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">shape_</a>[<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">dimslice</a>] = end - begin;</div> |
| <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div> |
| <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E, <span class="keywordtype">int</span> etype></div> |
| <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span></div> |
| <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#aafefae4f1b7a22b16a95490cd886222b"> 60</a></span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#aafefae4f1b7a22b16a95490cd886222b">operator=</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1Exp.html">expr::Exp<E, DType, etype></a> &exp) {</div> |
| <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  this-><a class="code" href="classmshadow_1_1expr_1_1RValueExp.html#a97259deba3e7b8b1876e1c032f62bd08">__assign</a>(exp);</div> |
| <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div> |
| <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span></div> |
| <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1SliceExp.html#ada0faac3304e147a97b279a59887f3f5"> 64</a></span>  <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#ada0faac3304e147a97b279a59887f3f5">operator=</a>(<span class="keyword">const</span> DType &exp) {</div> |
| <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  this-><a class="code" href="classmshadow_1_1expr_1_1RValueExp.html#a97259deba3e7b8b1876e1c032f62bd08">__assign</a>(exp);</div> |
| <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div> |
| <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }; <span class="comment">// struct Slice</span></div> |
| <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div> |
| <div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">template</span><<span class="keywordtype">int</span> sdim, <span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType, <span class="keywordtype">int</span> srcdim></div> |
| <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">inline</span> SliceExp<SrcExp, Device, DType, srcdim, srcdim - sdim></div> |
| <div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespacemshadow_1_1expr.html#a03f3fe4df6d6360c53f6e30b2aa92169"> 83</a></span> <a class="code" href="namespacemshadow_1_1expr.html#a03f3fe4df6d6360c53f6e30b2aa92169">slice</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1TRValue.html">TRValue<SrcExp, Device, srcdim, DType></a> &src, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> begin, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> end) {</div> |
| <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="structmshadow_1_1expr_1_1TypeCheckPass.html">TypeCheckPass<sdim < srcdim && ExpInfo<SrcExp>::kDim</a> == srcdim></div> |
| <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  ::Error_Expression_Does_Not_Meet_Dimension_Req();</div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, srcdim - sdim>(src.<a class="code" href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">self</a>(), begin, end);</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }</div> |
| <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment">//------------------------</span></div> |
| <div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// engine plugin</span></div> |
| <div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">//------------------------</span></div> |
| <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">// runtime shapecheck</span></div> |
| <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">int</span> srcdim, <span class="keywordtype">int</span> dimsrc_m_slice></div> |
| <div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1ShapeCheck_3_01srcdim_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_09942f2b7d4b89af110ba1781169fc59f.html"> 95</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1ShapeCheck.html">ShapeCheck</a><srcdim, <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, dimsrc_m_slice> >{</div> |
| <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1ShapeCheck_3_01srcdim_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_09942f2b7d4b89af110ba1781169fc59f.html#a156463d745274dfb1765fa6f36cdcdb0"> 96</a></span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="structmshadow_1_1Shape.html">Shape<srcdim></a> <a class="code" href="structmshadow_1_1expr_1_1ShapeCheck_3_01srcdim_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_09942f2b7d4b89af110ba1781169fc59f.html#a156463d745274dfb1765fa6f36cdcdb0">Check</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a><SrcExp,</div> |
| <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  Device, DType, srcdim, dimsrc_m_slice> &t) {</div> |
| <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">return</span> t.<a class="code" href="structmshadow_1_1Shape.html#a398d94165ccfbaf1ba0e8fcbedfe48c6">shape_</a>;</div> |
| <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  }</div> |
| <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> };</div> |
| <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">int</span> srcdim, <span class="keywordtype">int</span> dimsrc_m_slice></div> |
| <div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1StreamInfo_3_01Device_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_0b47c969b2032462401e416975903273d.html"> 104</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1StreamInfo.html">StreamInfo</a><Device, <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, dimsrc_m_slice> >{</div> |
| <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="structmshadow_1_1Stream.html">Stream<Device></a> *</div> |
| <div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1StreamInfo_3_01Device_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_0b47c969b2032462401e416975903273d.html#aaaa38487a19d02d7f3aa516ce34699c5"> 106</a></span>  <a class="code" href="structmshadow_1_1expr_1_1StreamInfo_3_01Device_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_0b47c969b2032462401e416975903273d.html#aaaa38487a19d02d7f3aa516ce34699c5">Get</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp<SrcExp, Device, DType, srcdim, dimsrc_m_slice></a> &t) {</div> |
| <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> <a class="code" href="structmshadow_1_1expr_1_1StreamInfo.html#a36eb8a0cbef3ac2b9669e185eb292128">StreamInfo<Device, SrcExp>::Get</a>(t.<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662">src_</a>);</div> |
| <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div> |
| <div class="line"><a name="l00109"></a><span class="lineno"> 109</span> };</div> |
| <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">// static typecheck</span></div> |
| <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">int</span> srcdim, <span class="keywordtype">int</span> dimsrc_m_slice></div> |
| <div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1ExpInfo_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01dimsrc__m__slice_01_4_01_4.html"> 114</a></span> <span class="keyword">struct </span><a class="code" href="structmshadow_1_1expr_1_1ExpInfo.html">ExpInfo</a><<a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, dimsrc_m_slice> >{</div> |
| <div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1ExpInfo_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01dimsrc__m__slice_01_4_01_4.html#a095036430880a12840de4272dcfa5c26"> 115</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmshadow_1_1expr_1_1ExpInfo.html#a0b0afc287b577f89dc3eb119c2fef778">kDim</a> = <a class="code" href="structmshadow_1_1expr_1_1ExpInfo.html">ExpInfo<SrcExp>::kDim</a>;</div> |
| <div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1ExpInfo_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01dimsrc__m__slice_01_4_01_4.html#a5e212c5eee9972892213befec14beb5f"> 116</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structmshadow_1_1expr_1_1ExpInfo.html#a610f3258c19b544f4056ea78c3259eb7">kDevMask</a> = <a class="code" href="structmshadow_1_1expr_1_1ExpInfo.html">ExpInfo<SrcExp>::kDevMask</a>;</div> |
| <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> };</div> |
| <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">//----------------------</span></div> |
| <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">// Execution plan</span></div> |
| <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">//---------------------</span></div> |
| <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">int</span> srcdim, <span class="keywordtype">int</span> dimsrc_m_slice></div> |
| <div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html"> 124</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_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, dimsrc_m_slice>, DType> {</div> |
| <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a44d286e296f7dec880bcc828074149b9"> 126</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> dimslice = srcdim - dimsrc_m_slice;</div> |
| <div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0e65dd99c4eef5543fb679a1e85aecf8"> 127</a></span>  <span class="keyword">explicit</span> <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0e65dd99c4eef5543fb679a1e85aecf8">Plan</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp<SrcExp, Device, DType, srcdim, dimsrc_m_slice></a> &e)</div> |
| <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  : src_(<a class="code" href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">MakePlan</a>(e.src_)),</div> |
| <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  height_(e.shape_.ProdShape(dimslice + 1, srcdim - 1)),</div> |
| <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  ch_begin_(e.ch_begin_), ch_old_(e.ch_old_), ch_(e.shape_[dimslice]) {}</div> |
| <div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a6d503748a0c235b67af1dbdfc481f7a3"> 131</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_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a6d503748a0c235b67af1dbdfc481f7a3">Eval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> i, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> j)<span class="keyword"> const </span>{</div> |
| <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y = i % height_;</div> |
| <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  i /= height_;</div> |
| <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> c = i % ch_ + ch_begin_;</div> |
| <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> b = i / ch_;</div> |
| <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x = j;</div> |
| <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">return</span> src_.Eval((b * ch_old_ + c) * height_ + y, x);</div> |
| <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div> |
| <div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0a4cdaa4dd5e1724d48b6a072b56ce2f"> 139</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_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0a4cdaa4dd5e1724d48b6a072b56ce2f">REval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> i, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> j) {</div> |
| <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y = i % height_;</div> |
| <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  i /= height_;</div> |
| <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> c = i % ch_ + ch_begin_;</div> |
| <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> b = i / ch_;</div> |
| <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x = j;</div> |
| <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> src_.REval((b * ch_old_ + c) * height_ + y, x);</div> |
| <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</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>  <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classmshadow_1_1expr_1_1Plan.html">Plan<SrcExp, DType></a> src_;</div> |
| <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> height_, ch_begin_, ch_old_, ch_;</div> |
| <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }; <span class="comment">// struct Plan</span></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> <span class="keyword">template</span><<span class="keyword">typename</span> SrcExp,</div> |
| <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">typename</span> Device, <span class="keyword">typename</span> DType,</div> |
| <div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">int</span> srcdim></div> |
| <div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_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_1SliceExp.html">SliceExp</a><SrcExp, Device, DType, srcdim, 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_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a9d0096dd05b77b7d5903d7d2e6845f93"> 158</a></span>  <span class="keyword">explicit</span> <a class="code" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a9d0096dd05b77b7d5903d7d2e6845f93">Plan</a>(<span class="keyword">const</span> <a class="code" href="structmshadow_1_1expr_1_1SliceExp.html">SliceExp<SrcExp, Device, DType, srcdim, 1></a> &e)</div> |
| <div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  : src_(<a class="code" href="namespacemshadow_1_1expr.html#aefd008a0bf012dc8fb99d9bbcca7a078">MakePlan</a>(e.src_)),</div> |
| <div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  ch_begin_(e.ch_begin_) {}</div> |
| <div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#ad9281247ffdf257a287a50a0d3b0fa4b"> 161</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_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#ad9281247ffdf257a287a50a0d3b0fa4b">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="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> src_.Eval(y, x + ch_begin_);</div> |
| <div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</div> |
| <div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a11348f3b11fdc793283862335194ff99"> 164</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_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a11348f3b11fdc793283862335194ff99">REval</a>(<a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> y, <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> x) {</div> |
| <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">return</span> src_.REval(y, x + ch_begin_);</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="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classmshadow_1_1expr_1_1Plan.html">Plan<SrcExp, DType></a> src_;</div> |
| <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keyword">const</span> <a class="code" href="namespacemshadow.html#adcbc2e1131386fccb1474b0bdf045926">index_t</a> ch_begin_;</div> |
| <div class="line"><a name="l00171"></a><span class="lineno"> 171</span> };</div> |
| <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> } <span class="comment">// namespace expr</span></div> |
| <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> } <span class="comment">// namespace mshadow</span></div> |
| <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#endif // MSHADOW_EXTENSION_SLICE_H_</span></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4_html_a11348f3b11fdc793283862335194ff99"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a11348f3b11fdc793283862335194ff99">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, 1 >, DType >::REval</a></div><div class="ttdeci">MSHADOW_XINLINE DType & REval(index_t y, index_t x)</div><div class="ttdef"><b>Definition:</b> slice.h:164</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1ExpInfo_html_a610f3258c19b544f4056ea78c3259eb7"><div class="ttname"><a href="structmshadow_1_1expr_1_1ExpInfo.html#a610f3258c19b544f4056ea78c3259eb7">mshadow::expr::ExpInfo::kDevMask</a></div><div class="ttdeci">static const int kDevMask</div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:264</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Exp_html_adb7e4afd0baed78d66cff87de0a6621f"><div class="ttname"><a href="structmshadow_1_1expr_1_1Exp.html#adb7e4afd0baed78d66cff87de0a6621f">mshadow::expr::Exp< Container, DType, type::kRValue >::self</a></div><div class="ttdeci">const Container & self(void) const</div><div class="ttdef"><b>Definition:</b> expression.h:82</div></div> |
| <div class="ttc" id="astructmshadow_1_1Stream_html"><div class="ttname"><a href="structmshadow_1_1Stream.html">mshadow::Stream</a></div><div class="ttdoc">computaion stream structure, used for asynchronous computations</div><div class="ttdef"><b>Definition:</b> tensor.h:488</div></div> |
| <div class="ttc" id="anamespacemshadow_1_1expr_html_a03f3fe4df6d6360c53f6e30b2aa92169"><div class="ttname"><a href="namespacemshadow_1_1expr.html#a03f3fe4df6d6360c53f6e30b2aa92169">mshadow::expr::slice</a></div><div class="ttdeci">SliceExp< SrcExp, Device, DType, srcdim, srcdim - sdim > slice(const TRValue< SrcExp, Device, srcdim, DType > &src, index_t begin, index_t end)</div><div class="ttdoc">Slice a Tensor.</div><div class="ttdef"><b>Definition:</b> slice.h:83</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_a0ea7759f324138e97442c9c95de9a3f8"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#a0ea7759f324138e97442c9c95de9a3f8">mshadow::expr::SliceExp::shape_</a></div><div class="ttdeci">Shape< srcdim > shape_</div><div class="ttdef"><b>Definition:</b> slice.h:49</div></div> |
| <div class="ttc" id="astructmshadow_1_1TRValue_html"><div class="ttname"><a href="structmshadow_1_1TRValue.html">mshadow::TRValue</a></div><div class="ttdoc">Tensor RValue, this is the super type of all kinds of possible tensors.</div><div class="ttdef"><b>Definition:</b> tensor.h:514</div></div> |
| <div class="ttc" id="astructmshadow_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="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237_html_a0a4cdaa4dd5e1724d48b6a072b56ce2f"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0a4cdaa4dd5e1724d48b6a072b56ce2f">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice >, DType >::REval</a></div><div class="ttdeci">MSHADOW_XINLINE DType & REval(index_t i, index_t j)</div><div class="ttdef"><b>Definition:</b> slice.h:139</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_ac0a2252319c1df91450b74599414c5e8"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#ac0a2252319c1df91450b74599414c5e8">mshadow::expr::SliceExp::dimslice</a></div><div class="ttdeci">static const int dimslice</div><div class="ttdef"><b>Definition:</b> slice.h:45</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237_html_a0e65dd99c4eef5543fb679a1e85aecf8"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a0e65dd99c4eef5543fb679a1e85aecf8">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice >, DType >::Plan</a></div><div class="ttdeci">Plan(const SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > &e)</div><div class="ttdef"><b>Definition:</b> slice.h:127</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1StreamInfo_html_a36eb8a0cbef3ac2b9669e185eb292128"><div class="ttname"><a href="structmshadow_1_1expr_1_1StreamInfo.html#a36eb8a0cbef3ac2b9669e185eb292128">mshadow::expr::StreamInfo::Get</a></div><div class="ttdeci">static Stream< Device > * Get(const E &t)</div></div> |
| <div class="ttc" id="a3rdparty_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:228</div></div> |
| <div class="ttc" id="astructmshadow_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="astructmshadow_1_1expr_1_1StreamInfo_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1StreamInfo.html">mshadow::expr::StreamInfo</a></div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:345</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4_html_ad9281247ffdf257a287a50a0d3b0fa4b"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#ad9281247ffdf257a287a50a0d3b0fa4b">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, 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> slice.h:161</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1ShapeCheck_html_af44e6a3b97cf3b245bc1b7ad4cacb306"><div class="ttname"><a href="structmshadow_1_1expr_1_1ShapeCheck.html#af44e6a3b97cf3b245bc1b7ad4cacb306">mshadow::expr::ShapeCheck::Check</a></div><div class="ttdeci">static Shape< dim > Check(const E &t)</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1ExpInfo_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1ExpInfo.html">mshadow::expr::ExpInfo</a></div><div class="ttdoc">static type inference template, used to get the dimension of each expression, if ExpInfo<E>::kDim == ...</div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:262</div></div> |
| <div class="ttc" id="anamespacemshadow_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="astructmshadow_1_1Shape_html_a398d94165ccfbaf1ba0e8fcbedfe48c6"><div class="ttname"><a href="structmshadow_1_1Shape.html#a398d94165ccfbaf1ba0e8fcbedfe48c6">mshadow::Shape::shape_</a></div><div class="ttdeci">index_t shape_[kDimension]</div><div class="ttdoc">storing the dimension information</div><div class="ttdef"><b>Definition:</b> tensor.h:86</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1ShapeCheck_3_01srcdim_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_09942f2b7d4b89af110ba1781169fc59f_html_a156463d745274dfb1765fa6f36cdcdb0"><div class="ttname"><a href="structmshadow_1_1expr_1_1ShapeCheck_3_01srcdim_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_09942f2b7d4b89af110ba1781169fc59f.html#a156463d745274dfb1765fa6f36cdcdb0">mshadow::expr::ShapeCheck< srcdim, SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > >::Check</a></div><div class="ttdeci">static Shape< srcdim > Check(const SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > &t)</div><div class="ttdef"><b>Definition:</b> slice.h:96</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html">mshadow::expr::SliceExp</a></div><div class="ttdoc">slice expression, slice a tensor's channel</div><div class="ttdef"><b>Definition:</b> slice.h:41</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1StreamInfo_3_01Device_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_0b47c969b2032462401e416975903273d_html_aaaa38487a19d02d7f3aa516ce34699c5"><div class="ttname"><a href="structmshadow_1_1expr_1_1StreamInfo_3_01Device_00_01SliceExp_3_01SrcExp_00_01Device_00_01DType_0b47c969b2032462401e416975903273d.html#aaaa38487a19d02d7f3aa516ce34699c5">mshadow::expr::StreamInfo< Device, SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > >::Get</a></div><div class="ttdeci">static Stream< Device > * Get(const SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > &t)</div><div class="ttdef"><b>Definition:</b> slice.h:106</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1ExpInfo_html_a0b0afc287b577f89dc3eb119c2fef778"><div class="ttname"><a href="structmshadow_1_1expr_1_1ExpInfo.html#a0b0afc287b577f89dc3eb119c2fef778">mshadow::expr::ExpInfo::kDim</a></div><div class="ttdeci">static const int kDim</div><div class="ttdef"><b>Definition:</b> expr_engine-inl.h:263</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_ada0faac3304e147a97b279a59887f3f5"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#ada0faac3304e147a97b279a59887f3f5">mshadow::expr::SliceExp::operator=</a></div><div class="ttdeci">void operator=(const DType &exp)</div><div class="ttdef"><b>Definition:</b> slice.h:64</div></div> |
| <div class="ttc" id="anamespacemshadow_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:328</div></div> |
| <div class="ttc" id="aclassmshadow_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="astructmshadow_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="astructmshadow_1_1expr_1_1SliceExp_html_a7a1d46e3a9bf812d2c5bce2c526a2662"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#a7a1d46e3a9bf812d2c5bce2c526a2662">mshadow::expr::SliceExp::src_</a></div><div class="ttdeci">const SrcExp & src_</div><div class="ttdef"><b>Definition:</b> slice.h:46</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_aafefae4f1b7a22b16a95490cd886222b"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#aafefae4f1b7a22b16a95490cd886222b">mshadow::expr::SliceExp::operator=</a></div><div class="ttdeci">void operator=(const expr::Exp< E, DType, etype > &exp)</div><div class="ttdef"><b>Definition:</b> slice.h:60</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4_html_a9d0096dd05b77b7d5903d7d2e6845f93"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_011_01_4_00_01DType_01_4.html#a9d0096dd05b77b7d5903d7d2e6845f93">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, 1 >, DType >::Plan</a></div><div class="ttdeci">Plan(const SliceExp< SrcExp, Device, DType, srcdim, 1 > &e)</div><div class="ttdef"><b>Definition:</b> slice.h:158</div></div> |
| <div class="ttc" id="anamespacemshadow_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:319</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237_html_a6d503748a0c235b67af1dbdfc481f7a3"><div class="ttname"><a href="structmshadow_1_1expr_1_1Plan_3_01SliceExp_3_01SrcExp_00_01Device_00_01DType_00_01srcdim_00_01di138be9f2d8eb2ebfd89aaa75a3f86237.html#a6d503748a0c235b67af1dbdfc481f7a3">mshadow::expr::Plan< SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice >, DType >::Eval</a></div><div class="ttdeci">MSHADOW_XINLINE DType Eval(index_t i, index_t j) const</div><div class="ttdef"><b>Definition:</b> slice.h:131</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_ab34a7fe4b0423ed76459051c8131b30b"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#ab34a7fe4b0423ed76459051c8131b30b">mshadow::expr::SliceExp::ch_old_</a></div><div class="ttdeci">index_t ch_old_</div><div class="ttdef"><b>Definition:</b> slice.h:48</div></div> |
| <div class="ttc" id="astructmshadow_1_1Shape_html"><div class="ttname"><a href="structmshadow_1_1Shape.html">mshadow::Shape< srcdim ></a></div></div> |
| <div class="ttc" id="aclassmshadow_1_1expr_1_1RValueExp_html_a97259deba3e7b8b1876e1c032f62bd08"><div class="ttname"><a href="classmshadow_1_1expr_1_1RValueExp.html#a97259deba3e7b8b1876e1c032f62bd08">mshadow::expr::RValueExp< SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice >, DType >::__assign</a></div><div class="ttdeci">SliceExp< SrcExp, Device, DType, srcdim, dimsrc_m_slice > & __assign(DType s)</div><div class="ttdoc">operator overload</div><div class="ttdef"><b>Definition:</b> expression.h:178</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_a15f0513c82a6ed59998bc8cd0ca78caa"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#a15f0513c82a6ed59998bc8cd0ca78caa">mshadow::expr::SliceExp::ch_begin_</a></div><div class="ttdeci">index_t ch_begin_</div><div class="ttdef"><b>Definition:</b> slice.h:47</div></div> |
| <div class="ttc" id="astructmshadow_1_1expr_1_1SliceExp_html_a100d204b87f0373c4f8c94407d4ef348"><div class="ttname"><a href="structmshadow_1_1expr_1_1SliceExp.html#a100d204b87f0373c4f8c94407d4ef348">mshadow::expr::SliceExp::SliceExp</a></div><div class="ttdeci">SliceExp(const SrcExp &src, index_t begin, index_t end)</div><div class="ttdef"><b>Definition:</b> slice.h:50</div></div> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Sat Nov 5 2022 01:16:57 for mxnet by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.17 |
| </small></address> |
| </body> |
| </html> |