blob: c4e9828dbf56a7b1356dab993543ecede04d9f4b [file] [log] [blame]
<!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/include/mxnet/operator_util.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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_1143c7affb9ebd026cb6818dd282def7.html">mxnet</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">operator_util.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="operator__util_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>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<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>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#ifndef MXNET_OPERATOR_UTIL_H_</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#define MXNET_OPERATOR_UTIL_H_</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#ifdef _MSC_VER</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#pragma warning(disable:4503) // disable warning: decorated name length exceeded.</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2dmlc-core_2include_2dmlc_2registry_8h.html">dmlc/registry.h</a>&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="parameter_8h.html">dmlc/parameter.h</a>&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="include_2mxnet_2base_8h.html">./base.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="include_2mxnet_2operator_8h.html">./operator.h</a>&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#if DMLC_USE_CXX11</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemxnet.html">mxnet</a> {</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html"> 51</a></span>&#160;<span class="keyword">namespace </span>op {</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1GradFunctionArgument.html"> 53</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html">GradFunctionArgument</a> {</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1GradFunctionArgument.html#ab9214ef3cfcf53b375a2e8f716e66929"> 55</a></span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a> <a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html#ab9214ef3cfcf53b375a2e8f716e66929">data</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;};</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1Input0.html"> 59</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1Input0.html">Input0</a> : <a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html">GradFunctionArgument</a> {};</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1Input1.html"> 61</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1Input1.html">Input1</a> : <a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html">GradFunctionArgument</a> {};</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1OutputValue.html"> 64</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1OutputValue.html">OutputValue</a> : <a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html">GradFunctionArgument</a> {};</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1OutputGrad.html"> 66</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a> : <a class="code" href="structmxnet_1_1op_1_1GradFunctionArgument.html">GradFunctionArgument</a> {};</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1EnvArguments.html"> 72</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a> {</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1EnvArguments.html#a74dfe03602a990b6552c8f7a01b2ecb5"> 74</a></span>&#160; <a class="code" href="namespacemxnet.html#a4421326e33f2a848cb2fa3e70ab24ff4">real_t</a> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html#a74dfe03602a990b6552c8f7a01b2ecb5">scalar</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1EnvArguments.html#a9dc6ddeef01eb50bc77517bec1195d5d"> 76</a></span>&#160; std::vector&lt;std::pair&lt;std::string, std::string&gt; &gt; <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html#a9dc6ddeef01eb50bc77517bec1195d5d">kwargs</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structmxnet_1_1op_1_1EnvArguments.html#a6b62df4767fd50d6a1fd9ebd44193bef"> 78</a></span>&#160; std::vector&lt;Resource&gt; <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html#a6b62df4767fd50d6a1fd9ebd44193bef">resource</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;};</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a65e8bade5ae0539689b705b921ed9a9d"> 89</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#a65e8bade5ae0539689b705b921ed9a9d">SourceFunction</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* ret,</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#aa4ae310a00e36e5bfa260fc65205395e"> 99</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a> (*<a class="code" href="namespacemxnet_1_1op.html#aa4ae310a00e36e5bfa260fc65205395e">SourceShapeFunction</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#aa37d5216112b72e8110fc8654860910b"> 110</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#aa37d5216112b72e8110fc8654860910b">UnaryFunction</a>)(<span class="keyword">const</span> <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>&amp; src,</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* ret,</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#aa97f14f8f0d4f6e57f792ad14f967fef"> 121</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a> (*<a class="code" href="namespacemxnet_1_1op.html#aa97f14f8f0d4f6e57f792ad14f967fef">UnaryShapeFunction</a>)(<span class="keyword">const</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a>&amp; src,</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a1e5767bffea568a1c38379060cbb68b4"> 132</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#a1e5767bffea568a1c38379060cbb68b4">UnaryGradFunctionT0</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a>&amp; out_grad,</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* in_grad,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a6ad11641816278f8fdb6fe87c7fd3740"> 146</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#a6ad11641816278f8fdb6fe87c7fd3740">UnaryGradFunctionT1</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a>&amp; out_grad,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputValue.html">OutputValue</a>&amp; out_value,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* in_grad,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#ac29102128f7e7785493bbb5b7db80997"> 161</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#ac29102128f7e7785493bbb5b7db80997">UnaryGradFunctionT2</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a>&amp; out_grad,</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1Input0.html">Input0</a>&amp; in_data0,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* in_grad,</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a880eff3ebc68810ef133a6d8b77facc9"> 177</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#a880eff3ebc68810ef133a6d8b77facc9">BinaryFunction</a>)(<span class="keyword">const</span> <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>&amp; lhs,</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keyword">const</span> <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>&amp; rhs,</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* ret,</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req,</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a8973cbc1527a6c57c6e19c9f1ed82075"> 191</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a> (*<a class="code" href="namespacemxnet_1_1op.html#a8973cbc1527a6c57c6e19c9f1ed82075">BinaryShapeFunction</a>)(<span class="keyword">const</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a>&amp; lhs,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keyword">const</span> <a class="code" href="classmxnet_1_1TShape.html">mxnet::TShape</a>&amp; rhs,</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env);</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#abcef841f759a7874ef50f21ae0226c8a"> 205</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#abcef841f759a7874ef50f21ae0226c8a">BinaryGradFunctionT0</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a>&amp; out_grad,</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* lhs_grad,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* rhs_grad,</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req_lhs_grad,</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req_rhs_grad,</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a027d1f190d964f7494816733aff6c3f2"> 224</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="namespacemxnet_1_1op.html#a027d1f190d964f7494816733aff6c3f2">BinaryGradFunctionT1</a>)(<span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1OutputGrad.html">OutputGrad</a>&amp; out_grad,</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1Input0.html">Input0</a>&amp; lhs,</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1Input1.html">Input1</a>&amp; rhs,</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keyword">const</span> <a class="code" href="structmxnet_1_1op_1_1EnvArguments.html">EnvArguments</a>&amp; env,</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* lhs_grad,</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <a class="code" href="classmxnet_1_1TBlob.html">TBlob</a>* rhs_grad,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req_lhs_grad,</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <a class="code" href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">OpReqType</a> req_rhs_grad,</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <a class="code" href="structmxnet_1_1RunContext.html">RunContext</a> ctx);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da"> 235</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> {</div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa048c01bf1598f31850baeb2152b005a2"> 237</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa048c01bf1598f31850baeb2152b005a2">kNoInplace</a>,</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa2c7771fd11a989ca2480963611405bde"> 239</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa2c7771fd11a989ca2480963611405bde">kInplaceInOut</a>,</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daab7974a6a3982dae42ba00af90dcabd80"> 241</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daab7974a6a3982dae42ba00af90dcabd80">kInplaceOutIn</a>,</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa31a764e0ff5966a10e26f7fbff308c18"> 243</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa31a764e0ff5966a10e26f7fbff308c18">kInplaceLhsOut</a>,</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa01a199e9f1e7d97724be8aa618d5a3d4"> 245</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa01a199e9f1e7d97724be8aa618d5a3d4">kInplaceOutLhs</a></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;};</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13"> 249</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13">SimpleOpScalarOption</a> {</div><div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13a44de4ba9d059034c023bc755cdc6026a"> 250</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13a44de4ba9d059034c023bc755cdc6026a">kScalarBeforeArray</a>,</div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13aa4cab4197f615e92b1fdb61c51e1b9c7"> 251</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13aa4cab4197f615e92b1fdb61c51e1b9c7">kArrayBeforeScalar</a></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;};</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268"> 255</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268">SimpleOpRegOption</a> {</div><div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a929ea2e4ea4bffd5119a8bbf296e616b"> 256</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a929ea2e4ea4bffd5119a8bbf296e616b">kNotRegisterSymbolic</a>,</div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1"> 257</a></span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1">kRegisterSymbolic</a></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160;};</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html"> 261</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html">SimpleOpRegEntry</a> {</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#ac2fd6ca9171b44a1ab131430cc5866a3"> 264</a></span>&#160; <span class="keyword">typedef</span> <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html">SimpleOpRegEntry</a> <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#ac2fd6ca9171b44a1ab131430cc5866a3">TSelf</a>;</div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a02c180f08b215e9553d3c93fa783f9a4"> 266</a></span>&#160; std::string <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a02c180f08b215e9553d3c93fa783f9a4">name</a>;</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_symbol_op_name(<span class="keywordtype">char</span> <span class="keyword">const</span>* symbol_name) = 0;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_enable_scalar(</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <span class="keywordtype">bool</span> enable_scalar,</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13">SimpleOpScalarOption</a> type_mask = <a class="code" href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13aa4cab4197f615e92b1fdb61c51e1b9c7">kArrayBeforeScalar</a>) = 0;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_enable_kwargs(<span class="keywordtype">bool</span> enable_kwargs) = 0;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_resource_request(</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; <span class="keyword">const</span> std::vector&lt;ResourceRequest&gt;&amp; reqs) = 0;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_resource_request(<a class="code" href="structmxnet_1_1ResourceRequest.html">ResourceRequest</a> req) = 0;</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_shape_function(<a class="code" href="namespacemxnet_1_1op.html#aa4ae310a00e36e5bfa260fc65205395e">SourceShapeFunction</a> fshapeinfer) = 0;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_shape_function(<a class="code" href="namespacemxnet_1_1op.html#aa97f14f8f0d4f6e57f792ad14f967fef">UnaryShapeFunction</a> fshapeinfer) = 0;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_shape_function(<a class="code" href="namespacemxnet_1_1op.html#a8973cbc1527a6c57c6e19c9f1ed82075">BinaryShapeFunction</a> fshapeinfer) = 0;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_function(</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a65e8bade5ae0539689b705b921ed9a9d">SourceFunction</a> fsource,</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268">SimpleOpRegOption</a> register_symbolic = <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1">kRegisterSymbolic</a>) = 0;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_function(</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160; <span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#aa37d5216112b72e8110fc8654860910b">UnaryFunction</a> funary,</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_in_out,</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268">SimpleOpRegOption</a> register_symbolic = <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1">kRegisterSymbolic</a>) = 0;</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_function(</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; <span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a880eff3ebc68810ef133a6d8b77facc9">BinaryFunction</a> fbinary,</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_lhs_out,</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268">SimpleOpRegOption</a> register_symbolic = <a class="code" href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1">kRegisterSymbolic</a>) = 0;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_gradient(<span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a1e5767bffea568a1c38379060cbb68b4">UnaryGradFunctionT0</a> fgrad,</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_out_in_grad) = 0;</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_gradient(<span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a6ad11641816278f8fdb6fe87c7fd3740">UnaryGradFunctionT1</a> fgrad,</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_out_in_grad) = 0;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_gradient(<span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#ac29102128f7e7785493bbb5b7db80997">UnaryGradFunctionT2</a> fgrad,</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_out_in_grad) = 0;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_gradient(<span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#abcef841f759a7874ef50f21ae0226c8a">BinaryGradFunctionT0</a> fgrad,</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_out_lhs_grad) = 0;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; <span class="keyword">virtual</span> TSelf&amp; set_gradient(<span class="keywordtype">int</span> dev_mask,</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a027d1f190d964f7494816733aff6c3f2">BinaryGradFunctionT1</a> fgrad,</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160; <a class="code" href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">SimpleOpInplaceOption</a> inplace_out_lhs_grad) = 0;</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keyword">virtual</span> TSelf&amp; describe(<span class="keyword">const</span> std::string &amp;description) = 0;</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; <span class="keyword">virtual</span> TSelf&amp; add_arguments(<span class="keyword">const</span> std::vector&lt;dmlc::ParamFieldInfo&gt; &amp;args) = 0;</div><div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a94815080350681ad70e7815da1bc0eae"> 416</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a94815080350681ad70e7815da1bc0eae">~SimpleOpRegEntry</a>() {}</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160;};</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegistry.html"> 420</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmxnet_1_1op_1_1SimpleOpRegistry.html">SimpleOpRegistry</a> {</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html">SimpleOpRegEntry</a> &amp;__REGISTER_OR_FIND__(<span class="keywordtype">char</span> <span class="keyword">const</span>* name);</div><div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="classmxnet_1_1op_1_1SimpleOpRegistry.html#a8ee596c99eef39fbbfffca181bf7f26e"> 433</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegEntry.html">SimpleOpRegEntry</a> *<a class="code" href="classmxnet_1_1op_1_1SimpleOpRegistry.html#a8ee596c99eef39fbbfffca181bf7f26e">Find</a>(<span class="keyword">const</span> std::string &amp;name) {</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>&#160; <span class="keywordflow">return</span> Get()-&gt;fmap_.at(name);</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160; }</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160; <span class="keyword">static</span> <a class="code" href="classmxnet_1_1op_1_1SimpleOpRegistry.html">SimpleOpRegistry</a>* Get();</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>&#160; <span class="comment">// destructor</span></div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160; ~<a class="code" href="classmxnet_1_1op_1_1SimpleOpRegistry.html">SimpleOpRegistry</a>();</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160; std::map&lt;std::string, SimpleOpRegEntry*&gt; fmap_;</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;};</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160;</div><div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="operator__util_8h.html#a0e0ffc581a0c4a40815110163625b517"> 454</a></span>&#160;<span class="preprocessor">#define ASSIGN_DISPATCH(out, req, exp) \</span></div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160;<span class="preprocessor"> { \</span></div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160;<span class="preprocessor"> switch (req) { \</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160;<span class="preprocessor"> case kNullOp: \</span></div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160;<span class="preprocessor"> break; \</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;<span class="preprocessor"> case kWriteTo: \</span></div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160;<span class="preprocessor"> case kWriteInplace: \</span></div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160;<span class="preprocessor"> (out) = (exp); \</span></div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160;<span class="preprocessor"> break; \</span></div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160;<span class="preprocessor"> case kAddTo: \</span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160;<span class="preprocessor"> (out) += (exp); \</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160;<span class="preprocessor"> break; \</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160;<span class="preprocessor"> default: \</span></div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160;<span class="preprocessor"> LOG(FATAL) &lt;&lt; &quot;not reached&quot;; \</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160;<span class="preprocessor"> } \</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160;<span class="preprocessor"> }</span></div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160;</div><div class="line"><a name="l00474"></a><span class="lineno"><a class="line" href="operator__util_8h.html#ad815e6121771b9c0e292674c7b966f22"> 474</a></span>&#160;<span class="preprocessor">#define MXNET_SPECIAL_MAX_NDIM 5</span></div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160;</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160;<span class="comment">//--------------------------------------------------------------</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160;<span class="comment">// The following part are API Registration of Simple Operators</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160;<span class="comment">//--------------------------------------------------------------</span></div><div class="line"><a name="l00497"></a><span class="lineno"><a class="line" href="operator__util_8h.html#a7c62fb645da1e054596c58315aeadc2c"> 497</a></span>&#160;<span class="comment"></span><span class="preprocessor">#define MXNET_REGISTER_SIMPLE_OP(Name, DEV) \</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160;<span class="preprocessor"> static ::mxnet::op::SimpleOpRegEntry &amp; \</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160;<span class="preprocessor"> __make_ ## SimpleOpRegEntry ## _ ## Name ## __ ## DEV ##__ = \</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160;<span class="preprocessor"> ::mxnet::op::SimpleOpRegistry::Get()-&gt;__REGISTER_OR_FIND__(#Name)</span></div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160;</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160;} <span class="comment">// namespace op</span></div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>&#160;} <span class="comment">// namespace mxnet</span></div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160;<span class="preprocessor">#endif // MXNET_OPERATOR_UTIL_H_</span></div><div class="ttc" id="namespacemxnet_1_1op_html_a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1"><div class="ttname"><a href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a534486ab7c3f672542bfa09b7b6982d1">mxnet::op::kRegisterSymbolic</a></div><div class="ttdef"><b>Definition:</b> operator_util.h:257</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_ac29102128f7e7785493bbb5b7db80997"><div class="ttname"><a href="namespacemxnet_1_1op.html#ac29102128f7e7785493bbb5b7db80997">mxnet::op::UnaryGradFunctionT2</a></div><div class="ttdeci">void(* UnaryGradFunctionT2)(const OutputGrad &amp;out_grad, const Input0 &amp;in_data0, const EnvArguments &amp;env, TBlob *in_grad, OpReqType req, RunContext ctx)</div><div class="ttdoc">Gradient function that takes input value of function and computes gradient wrt to input...</div><div class="ttdef"><b>Definition:</b> operator_util.h:161</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1OutputGrad_html"><div class="ttname"><a href="structmxnet_1_1op_1_1OutputGrad.html">mxnet::op::OutputGrad</a></div><div class="ttdoc">Gradient of output value. </div><div class="ttdef"><b>Definition:</b> operator_util.h:66</div></div>
<div class="ttc" id="include_2mxnet_2operator_8h_html"><div class="ttname"><a href="include_2mxnet_2operator_8h.html">operator.h</a></div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a01bb0bb658bedb4d58bf7d11e4b17268"><div class="ttname"><a href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268">mxnet::op::SimpleOpRegOption</a></div><div class="ttdeci">SimpleOpRegOption</div><div class="ttdoc">options in the registry to set symbolic registration </div><div class="ttdef"><b>Definition:</b> operator_util.h:255</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_ae7310844fa858f1ec6b6428dd6977a13aa4cab4197f615e92b1fdb61c51e1b9c7"><div class="ttname"><a href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13aa4cab4197f615e92b1fdb61c51e1b9c7">mxnet::op::kArrayBeforeScalar</a></div><div class="ttdef"><b>Definition:</b> operator_util.h:251</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a880eff3ebc68810ef133a6d8b77facc9"><div class="ttname"><a href="namespacemxnet_1_1op.html#a880eff3ebc68810ef133a6d8b77facc9">mxnet::op::BinaryFunction</a></div><div class="ttdeci">void(* BinaryFunction)(const TBlob &amp;lhs, const TBlob &amp;rhs, const EnvArguments &amp;env, TBlob *ret, OpReqType req, RunContext ctx)</div><div class="ttdoc">Binary function that takes lhs, rhs and save result to ret. The result container is pre-allocated wit...</div><div class="ttdef"><b>Definition:</b> operator_util.h:177</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_aa37d5216112b72e8110fc8654860910b"><div class="ttname"><a href="namespacemxnet_1_1op.html#aa37d5216112b72e8110fc8654860910b">mxnet::op::UnaryFunction</a></div><div class="ttdeci">void(* UnaryFunction)(const TBlob &amp;src, const EnvArguments &amp;env, TBlob *ret, OpReqType req, RunContext ctx)</div><div class="ttdoc">Unary function that takes a src and save result to ret. The result container is pre-allocated with th...</div><div class="ttdef"><b>Definition:</b> operator_util.h:110</div></div>
<div class="ttc" id="namespacemxnet_html"><div class="ttname"><a href="namespacemxnet.html">mxnet</a></div><div class="ttdoc">namespace of mxnet </div><div class="ttdef"><b>Definition:</b> api_registry.h:33</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a027d1f190d964f7494816733aff6c3f2"><div class="ttname"><a href="namespacemxnet_1_1op.html#a027d1f190d964f7494816733aff6c3f2">mxnet::op::BinaryGradFunctionT1</a></div><div class="ttdeci">void(* BinaryGradFunctionT1)(const OutputGrad &amp;out_grad, const Input0 &amp;lhs, const Input1 &amp;rhs, const EnvArguments &amp;env, TBlob *lhs_grad, TBlob *rhs_grad, OpReqType req_lhs_grad, OpReqType req_rhs_grad, RunContext ctx)</div><div class="ttdoc">Gradient function that takes inputs of function anod computes gradient wrt to input. </div><div class="ttdef"><b>Definition:</b> operator_util.h:224</div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegistry_html"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegistry.html">mxnet::op::SimpleOpRegistry</a></div><div class="ttdoc">registry for TBlob functions </div><div class="ttdef"><b>Definition:</b> operator_util.h:420</div></div>
<div class="ttc" id="structmxnet_1_1ResourceRequest_html"><div class="ttname"><a href="structmxnet_1_1ResourceRequest.html">mxnet::ResourceRequest</a></div><div class="ttdoc">The resources that can be requested by Operator. </div><div class="ttdef"><b>Definition:</b> resource.h:37</div></div>
<div class="ttc" id="3rdparty_2dmlc-core_2include_2dmlc_2registry_8h_html"><div class="ttname"><a href="3rdparty_2dmlc-core_2include_2dmlc_2registry_8h.html">registry.h</a></div></div>
<div class="ttc" id="namespacemxnet_html_a4421326e33f2a848cb2fa3e70ab24ff4"><div class="ttname"><a href="namespacemxnet.html#a4421326e33f2a848cb2fa3e70ab24ff4">mxnet::real_t</a></div><div class="ttdeci">mshadow::default_real_t real_t</div><div class="ttdoc">data type that will be used to store ndarray </div><div class="ttdef"><b>Definition:</b> base.h:96</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_aa4ae310a00e36e5bfa260fc65205395e"><div class="ttname"><a href="namespacemxnet_1_1op.html#aa4ae310a00e36e5bfa260fc65205395e">mxnet::op::SourceShapeFunction</a></div><div class="ttdeci">mxnet::TShape(* SourceShapeFunction)(const EnvArguments &amp;env)</div><div class="ttdoc">Shape inference function to get the correct shape. </div><div class="ttdef"><b>Definition:</b> operator_util.h:99</div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegEntry_html_a02c180f08b215e9553d3c93fa783f9a4"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a02c180f08b215e9553d3c93fa783f9a4">mxnet::op::SimpleOpRegEntry::name</a></div><div class="ttdeci">std::string name</div><div class="ttdoc">name of the operator </div><div class="ttdef"><b>Definition:</b> operator_util.h:266</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8daa2c7771fd11a989ca2480963611405bde"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa2c7771fd11a989ca2480963611405bde">mxnet::op::kInplaceInOut</a></div><div class="ttdoc">in unary forward, allow inplace in with out </div><div class="ttdef"><b>Definition:</b> operator_util.h:239</div></div>
<div class="ttc" id="structmxnet_1_1RunContext_html"><div class="ttname"><a href="structmxnet_1_1RunContext.html">mxnet::RunContext</a></div><div class="ttdoc">execution time context. The information needed in runtime for actual execution. </div><div class="ttdef"><b>Definition:</b> base.h:349</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1EnvArguments_html_a74dfe03602a990b6552c8f7a01b2ecb5"><div class="ttname"><a href="structmxnet_1_1op_1_1EnvArguments.html#a74dfe03602a990b6552c8f7a01b2ecb5">mxnet::op::EnvArguments::scalar</a></div><div class="ttdeci">real_t scalar</div><div class="ttdoc">scalar argument, if enabled </div><div class="ttdef"><b>Definition:</b> operator_util.h:74</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a8973cbc1527a6c57c6e19c9f1ed82075"><div class="ttname"><a href="namespacemxnet_1_1op.html#a8973cbc1527a6c57c6e19c9f1ed82075">mxnet::op::BinaryShapeFunction</a></div><div class="ttdeci">mxnet::TShape(* BinaryShapeFunction)(const mxnet::TShape &amp;lhs, const mxnet::TShape &amp;rhs, const EnvArguments &amp;env)</div><div class="ttdoc">Shape inference function to get the correct shape given source shapes. </div><div class="ttdef"><b>Definition:</b> operator_util.h:191</div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegistry_html_a8ee596c99eef39fbbfffca181bf7f26e"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegistry.html#a8ee596c99eef39fbbfffca181bf7f26e">mxnet::op::SimpleOpRegistry::Find</a></div><div class="ttdeci">static const SimpleOpRegEntry * Find(const std::string &amp;name)</div><div class="ttdoc">Find the entry with corresponding name. </div><div class="ttdef"><b>Definition:</b> operator_util.h:433</div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegEntry_html_a94815080350681ad70e7815da1bc0eae"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#a94815080350681ad70e7815da1bc0eae">mxnet::op::SimpleOpRegEntry::~SimpleOpRegEntry</a></div><div class="ttdeci">virtual ~SimpleOpRegEntry()</div><div class="ttdoc">virtual destructor </div><div class="ttdef"><b>Definition:</b> operator_util.h:416</div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegEntry_html"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegEntry.html">mxnet::op::SimpleOpRegEntry</a></div><div class="ttdoc">registry entry to register simple operators via functions. </div><div class="ttdef"><b>Definition:</b> operator_util.h:261</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1Input1_html"><div class="ttname"><a href="structmxnet_1_1op_1_1Input1.html">mxnet::op::Input1</a></div><div class="ttdoc">Second input to the function. </div><div class="ttdef"><b>Definition:</b> operator_util.h:61</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8daab7974a6a3982dae42ba00af90dcabd80"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daab7974a6a3982dae42ba00af90dcabd80">mxnet::op::kInplaceOutIn</a></div><div class="ttdoc">in unary backward, allow inplace out_grad with in_grad </div><div class="ttdef"><b>Definition:</b> operator_util.h:241</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1GradFunctionArgument_html"><div class="ttname"><a href="structmxnet_1_1op_1_1GradFunctionArgument.html">mxnet::op::GradFunctionArgument</a></div><div class="ttdoc">super class of all gradient function argument </div><div class="ttdef"><b>Definition:</b> operator_util.h:53</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1GradFunctionArgument_html_ab9214ef3cfcf53b375a2e8f716e66929"><div class="ttname"><a href="structmxnet_1_1op_1_1GradFunctionArgument.html#ab9214ef3cfcf53b375a2e8f716e66929">mxnet::op::GradFunctionArgument::data</a></div><div class="ttdeci">TBlob data</div><div class="ttdoc">The real data. </div><div class="ttdef"><b>Definition:</b> operator_util.h:55</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8daa048c01bf1598f31850baeb2152b005a2"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa048c01bf1598f31850baeb2152b005a2">mxnet::op::kNoInplace</a></div><div class="ttdoc">do not allow inplace in arguments </div><div class="ttdef"><b>Definition:</b> operator_util.h:237</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a6ad11641816278f8fdb6fe87c7fd3740"><div class="ttname"><a href="namespacemxnet_1_1op.html#a6ad11641816278f8fdb6fe87c7fd3740">mxnet::op::UnaryGradFunctionT1</a></div><div class="ttdeci">void(* UnaryGradFunctionT1)(const OutputGrad &amp;out_grad, const OutputValue &amp;out_value, const EnvArguments &amp;env, TBlob *in_grad, OpReqType req, RunContext ctx)</div><div class="ttdoc">Gradient function that takes output value of function and computes gradient wrt to input...</div><div class="ttdef"><b>Definition:</b> operator_util.h:146</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8da"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8da">mxnet::op::SimpleOpInplaceOption</a></div><div class="ttdeci">SimpleOpInplaceOption</div><div class="ttdoc">options in the registry to set inplace of operator </div><div class="ttdef"><b>Definition:</b> operator_util.h:235</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a65e8bade5ae0539689b705b921ed9a9d"><div class="ttname"><a href="namespacemxnet_1_1op.html#a65e8bade5ae0539689b705b921ed9a9d">mxnet::op::SourceFunction</a></div><div class="ttdeci">void(* SourceFunction)(const EnvArguments &amp;env, TBlob *ret, OpReqType req, RunContext ctx)</div><div class="ttdoc">source function that generate output based on env The result container is pre-allocated with the corr...</div><div class="ttdef"><b>Definition:</b> operator_util.h:89</div></div>
<div class="ttc" id="include_2mxnet_2base_8h_html"><div class="ttname"><a href="include_2mxnet_2base_8h.html">base.h</a></div></div>
<div class="ttc" id="namespacemxnet_html_a7cd7094ef222e9ae1f520c3b6a214398"><div class="ttname"><a href="namespacemxnet.html#a7cd7094ef222e9ae1f520c3b6a214398">mxnet::OpReqType</a></div><div class="ttdeci">OpReqType</div><div class="ttdoc">operation request type to Forward and Backward </div><div class="ttdef"><b>Definition:</b> op_attr_types.h:45</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1EnvArguments_html"><div class="ttname"><a href="structmxnet_1_1op_1_1EnvArguments.html">mxnet::op::EnvArguments</a></div><div class="ttdoc">Environment arguments that is used by the function. These can be things like scalar arguments when ad...</div><div class="ttdef"><b>Definition:</b> operator_util.h:72</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1OutputValue_html"><div class="ttname"><a href="structmxnet_1_1op_1_1OutputValue.html">mxnet::op::OutputValue</a></div><div class="ttdoc">Ouput value of the function to the function. </div><div class="ttdef"><b>Definition:</b> operator_util.h:64</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_ae7310844fa858f1ec6b6428dd6977a13"><div class="ttname"><a href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13">mxnet::op::SimpleOpScalarOption</a></div><div class="ttdeci">SimpleOpScalarOption</div><div class="ttdoc">options in the registry to set symbolic registration </div><div class="ttdef"><b>Definition:</b> operator_util.h:249</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a1e5767bffea568a1c38379060cbb68b4"><div class="ttname"><a href="namespacemxnet_1_1op.html#a1e5767bffea568a1c38379060cbb68b4">mxnet::op::UnaryGradFunctionT0</a></div><div class="ttdeci">void(* UnaryGradFunctionT0)(const OutputGrad &amp;out_grad, const EnvArguments &amp;env, TBlob *in_grad, OpReqType req, RunContext ctx)</div><div class="ttdoc">Gradient function that takes output value of function and computes gradient wrt to input...</div><div class="ttdef"><b>Definition:</b> operator_util.h:132</div></div>
<div class="ttc" id="classmxnet_1_1TShape_html"><div class="ttname"><a href="classmxnet_1_1TShape.html">mxnet::TShape</a></div><div class="ttdoc">A Shape class that is used to represent shape of each tensor. </div><div class="ttdef"><b>Definition:</b> tuple.h:437</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_abcef841f759a7874ef50f21ae0226c8a"><div class="ttname"><a href="namespacemxnet_1_1op.html#abcef841f759a7874ef50f21ae0226c8a">mxnet::op::BinaryGradFunctionT0</a></div><div class="ttdeci">void(* BinaryGradFunctionT0)(const OutputGrad &amp;out_grad, const EnvArguments &amp;env, TBlob *lhs_grad, TBlob *rhs_grad, OpReqType req_lhs_grad, OpReqType req_rhs_grad, RunContext ctx)</div><div class="ttdoc">Gradient function that takes only output gradient and computes gradient wrt to input. We support total gradient as a whole to make it easy to combine a few ops. </div><div class="ttdef"><b>Definition:</b> operator_util.h:205</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1Input0_html"><div class="ttname"><a href="structmxnet_1_1op_1_1Input0.html">mxnet::op::Input0</a></div><div class="ttdoc">First input to the function. </div><div class="ttdef"><b>Definition:</b> operator_util.h:59</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1EnvArguments_html_a9dc6ddeef01eb50bc77517bec1195d5d"><div class="ttname"><a href="structmxnet_1_1op_1_1EnvArguments.html#a9dc6ddeef01eb50bc77517bec1195d5d">mxnet::op::EnvArguments::kwargs</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; std::string, std::string &gt; &gt; kwargs</div><div class="ttdoc">keyword arguments </div><div class="ttdef"><b>Definition:</b> operator_util.h:76</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_ae7310844fa858f1ec6b6428dd6977a13a44de4ba9d059034c023bc755cdc6026a"><div class="ttname"><a href="namespacemxnet_1_1op.html#ae7310844fa858f1ec6b6428dd6977a13a44de4ba9d059034c023bc755cdc6026a">mxnet::op::kScalarBeforeArray</a></div><div class="ttdef"><b>Definition:</b> operator_util.h:250</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a01bb0bb658bedb4d58bf7d11e4b17268a929ea2e4ea4bffd5119a8bbf296e616b"><div class="ttname"><a href="namespacemxnet_1_1op.html#a01bb0bb658bedb4d58bf7d11e4b17268a929ea2e4ea4bffd5119a8bbf296e616b">mxnet::op::kNotRegisterSymbolic</a></div><div class="ttdef"><b>Definition:</b> operator_util.h:256</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8daa31a764e0ff5966a10e26f7fbff308c18"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa31a764e0ff5966a10e26f7fbff308c18">mxnet::op::kInplaceLhsOut</a></div><div class="ttdoc">in binary forward, allow inplace left operand with out </div><div class="ttdef"><b>Definition:</b> operator_util.h:243</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_a3c3b8c77865c7c715cfe05ee2b2fa8daa01a199e9f1e7d97724be8aa618d5a3d4"><div class="ttname"><a href="namespacemxnet_1_1op.html#a3c3b8c77865c7c715cfe05ee2b2fa8daa01a199e9f1e7d97724be8aa618d5a3d4">mxnet::op::kInplaceOutLhs</a></div><div class="ttdoc">in binary backward, allow inplace out_grad with lhs_grad </div><div class="ttdef"><b>Definition:</b> operator_util.h:245</div></div>
<div class="ttc" id="structmxnet_1_1op_1_1EnvArguments_html_a6b62df4767fd50d6a1fd9ebd44193bef"><div class="ttname"><a href="structmxnet_1_1op_1_1EnvArguments.html#a6b62df4767fd50d6a1fd9ebd44193bef">mxnet::op::EnvArguments::resource</a></div><div class="ttdeci">std::vector&lt; Resource &gt; resource</div><div class="ttdoc">pointer to the resources requested </div><div class="ttdef"><b>Definition:</b> operator_util.h:78</div></div>
<div class="ttc" id="namespacemxnet_1_1op_html_aa97f14f8f0d4f6e57f792ad14f967fef"><div class="ttname"><a href="namespacemxnet_1_1op.html#aa97f14f8f0d4f6e57f792ad14f967fef">mxnet::op::UnaryShapeFunction</a></div><div class="ttdeci">mxnet::TShape(* UnaryShapeFunction)(const mxnet::TShape &amp;src, const EnvArguments &amp;env)</div><div class="ttdoc">Shape inference function to get the correct shape given source. </div><div class="ttdef"><b>Definition:</b> operator_util.h:121</div></div>
<div class="ttc" id="parameter_8h_html"><div class="ttname"><a href="parameter_8h.html">parameter.h</a></div><div class="ttdoc">Provide lightweight util to do parameter setup and checking. </div></div>
<div class="ttc" id="classmxnet_1_1op_1_1SimpleOpRegEntry_html_ac2fd6ca9171b44a1ab131430cc5866a3"><div class="ttname"><a href="classmxnet_1_1op_1_1SimpleOpRegEntry.html#ac2fd6ca9171b44a1ab131430cc5866a3">mxnet::op::SimpleOpRegEntry::TSelf</a></div><div class="ttdeci">SimpleOpRegEntry TSelf</div><div class="ttdoc">declare self type </div><div class="ttdef"><b>Definition:</b> operator_util.h:264</div></div>
<div class="ttc" id="classmxnet_1_1TBlob_html"><div class="ttname"><a href="classmxnet_1_1TBlob.html">mxnet::TBlob</a></div><div class="ttdoc">tensor blob class that can be used to hold tensor of any dimension, any device and any data type...</div><div class="ttdef"><b>Definition:</b> tensor_blob.h:65</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 00:58:42 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>