blob: 13bd161915f139695eddebe9583d1ee4f597bcbc [file] [log] [blame]
<!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/include/mxnet/c_api_test.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&amp;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&amp;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_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">c_api_test.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="c__api__test_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="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#ifndef MXNET_C_API_TEST_H_</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#define MXNET_C_API_TEST_H_</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#endif // __cplusplus</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">#include &lt;<a class="code" href="include_2mxnet_2c__api_8h.html">mxnet/c_api.h</a>&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a6bc6a3c7b5a7dea6acd93a98d3d293d2">MXBuildSubgraphByOpNames</a>(<a class="code" href="include_2mxnet_2c__api_8h.html#a301e9a7722b326126defdd39ccd99b37">SymbolHandle</a> sym_handle,</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>* prop_name,</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keyword">const</span> uint32_t num_ops,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>** op_names,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="include_2mxnet_2c__api_8h.html#a301e9a7722b326126defdd39ccd99b37">SymbolHandle</a>* ret_sym_handle);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a46bef4e497c000f66704316b6a01eeba">MXSetSubgraphPropertyOpNames</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prop_name,</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">const</span> uint32_t num_ops,</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>** op_names);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a4d4fb64e7ea28aebf00dce4853e638e2">MXSetSubgraphPropertyOpNamesV2</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prop_name,</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">const</span> uint32_t num_ops,</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>** op_names);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a89b596297dc67b1a922afdac0aa48f35">MXRemoveSubgraphPropertyOpNames</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prop_name);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a821637da6f223d99f7cac2daf85d1d33">MXRemoveSubgraphPropertyOpNamesV2</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prop_name);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a692d1c71002b3b5f4ca010de0b94ddf2">MXGetEnv</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>** value);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a915070155212e60ce9f00ef896463c0d">MXSetEnv</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<a class="code" href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a> <span class="keywordtype">int</span> <a class="code" href="c__api__test_8h.html#a22c1f45c9abf5b34855efa9f8cb20214">MXGetMaxSupportedArch</a>(uint32_t* max_arch);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;}</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor">#endif // __cplusplus</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor">#endif // MXNET_C_API_TEST_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="ac__api__test_8h_html_a915070155212e60ce9f00ef896463c0d"><div class="ttname"><a href="c__api__test_8h.html#a915070155212e60ce9f00ef896463c0d">MXSetEnv</a></div><div class="ttdeci">MXNET_DLL int MXSetEnv(const char *name, const char *value)</div><div class="ttdoc">Set the value of an environment variable from the backend.</div></div>
<div class="ttc" id="ac__api__test_8h_html_a22c1f45c9abf5b34855efa9f8cb20214"><div class="ttname"><a href="c__api__test_8h.html#a22c1f45c9abf5b34855efa9f8cb20214">MXGetMaxSupportedArch</a></div><div class="ttdeci">MXNET_DLL int MXGetMaxSupportedArch(uint32_t *max_arch)</div><div class="ttdoc">Get the maximum SM architecture supported by the nvrtc compiler.</div></div>
<div class="ttc" id="ac__api__test_8h_html_a821637da6f223d99f7cac2daf85d1d33"><div class="ttname"><a href="c__api__test_8h.html#a821637da6f223d99f7cac2daf85d1d33">MXRemoveSubgraphPropertyOpNamesV2</a></div><div class="ttdeci">MXNET_DLL int MXRemoveSubgraphPropertyOpNamesV2(const char *prop_name)</div><div class="ttdoc">Given a subgraph property name, remove op_names attribute of the in the SubgraphBackend property.</div></div>
<div class="ttc" id="ac__api__test_8h_html_a89b596297dc67b1a922afdac0aa48f35"><div class="ttname"><a href="c__api__test_8h.html#a89b596297dc67b1a922afdac0aa48f35">MXRemoveSubgraphPropertyOpNames</a></div><div class="ttdeci">MXNET_DLL int MXRemoveSubgraphPropertyOpNames(const char *prop_name)</div><div class="ttdoc">Given a subgraph property name, delete the op name set in the SubgraphPropertyOpNameSet.</div></div>
<div class="ttc" id="ac__api__test_8h_html_a4d4fb64e7ea28aebf00dce4853e638e2"><div class="ttname"><a href="c__api__test_8h.html#a4d4fb64e7ea28aebf00dce4853e638e2">MXSetSubgraphPropertyOpNamesV2</a></div><div class="ttdeci">MXNET_DLL int MXSetSubgraphPropertyOpNamesV2(const char *prop_name, const uint32_t num_ops, const char **op_names)</div><div class="ttdoc">Given a subgraph property name, use the provided op names as the op_names attribute for that subgraph...</div></div>
<div class="ttc" id="ac__api__test_8h_html_a692d1c71002b3b5f4ca010de0b94ddf2"><div class="ttname"><a href="c__api__test_8h.html#a692d1c71002b3b5f4ca010de0b94ddf2">MXGetEnv</a></div><div class="ttdeci">MXNET_DLL int MXGetEnv(const char *name, const char **value)</div><div class="ttdoc">Get the value of an environment variable as seen by the backend.</div></div>
<div class="ttc" id="ainclude_2mxnet_2c__api_8h_html"><div class="ttname"><a href="include_2mxnet_2c__api_8h.html">c_api.h</a></div><div class="ttdoc">C API of mxnet.</div></div>
<div class="ttc" id="ainclude_2mxnet_2c__api_8h_html_a5b0e47dde55f9b2f58b99fab92d1e0ac"><div class="ttname"><a href="include_2mxnet_2c__api_8h.html#a5b0e47dde55f9b2f58b99fab92d1e0ac">MXNET_DLL</a></div><div class="ttdeci">#define MXNET_DLL</div><div class="ttdoc">MXNET_DLL prefix for windows.</div><div class="ttdef"><b>Definition:</b> c_api.h:53</div></div>
<div class="ttc" id="ac__api__test_8h_html_a46bef4e497c000f66704316b6a01eeba"><div class="ttname"><a href="c__api__test_8h.html#a46bef4e497c000f66704316b6a01eeba">MXSetSubgraphPropertyOpNames</a></div><div class="ttdeci">MXNET_DLL int MXSetSubgraphPropertyOpNames(const char *prop_name, const uint32_t num_ops, const char **op_names)</div><div class="ttdoc">Given a subgraph property name, use the provided op names as the op_names attribute for that subgraph...</div></div>
<div class="ttc" id="ainclude_2mxnet_2c__api_8h_html_a301e9a7722b326126defdd39ccd99b37"><div class="ttname"><a href="include_2mxnet_2c__api_8h.html#a301e9a7722b326126defdd39ccd99b37">SymbolHandle</a></div><div class="ttdeci">void * SymbolHandle</div><div class="ttdoc">handle to a symbol that can be bind as operator</div><div class="ttdef"><b>Definition:</b> c_api.h:82</div></div>
<div class="ttc" id="ac__api__test_8h_html_a6bc6a3c7b5a7dea6acd93a98d3d293d2"><div class="ttname"><a href="c__api__test_8h.html#a6bc6a3c7b5a7dea6acd93a98d3d293d2">MXBuildSubgraphByOpNames</a></div><div class="ttdeci">MXNET_DLL int MXBuildSubgraphByOpNames(SymbolHandle sym_handle, const char *prop_name, const uint32_t num_ops, const char **op_names, SymbolHandle *ret_sym_handle)</div><div class="ttdoc">Inhibit C++ name-mangling for MXNet functions.</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 03:47:39 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>