| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.13"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>mxnet: /work/mxnet/3rdparty/mshadow/mshadow/io.h File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectalign" style="padding-left: 0.5em;"> |
| <div id="projectname">mxnet |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| </script> |
| <div id="main-nav"></div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_3e48ced36faa4eaa1b41f6d960bf0edb.html">mshadow</a></li><li class="navelem"><a class="el" href="dir_00b035bb2ad81894e6ad291054ea5f82.html">mshadow</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="summary"> |
| <a href="#nested-classes">Classes</a> | |
| <a href="#namespaces">Namespaces</a> | |
| <a href="#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">io.h File Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="textblock"><code>#include "<a class="el" href="tensor_8h_source.html">./tensor.h</a>"</code><br /> |
| </div><div class="textblock"><div class="dynheader"> |
| Include dependency graph for io.h:</div> |
| <div class="dyncontent"> |
| <div class="center"><img src="3rdparty_2mshadow_2mshadow_2io_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8h" alt=""/></div> |
| <map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8h" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8h"> |
| <area shape="rect" id="node2" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="1665,95,1747,121"/> |
| <area shape="rect" id="node5" href="3rdparty_2mshadow_2mshadow_2base_8h.html" title="./base.h" alt="" coords="1181,408,1255,435"/> |
| <area shape="rect" id="node27" href="expression_8h.html" title="definitions of abstract expressions and expressions template " alt="" coords="1307,333,1420,360"/> |
| <area shape="rect" id="node28" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="1516,169,1656,196"/> |
| <area shape="rect" id="node30" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="2811,169,2918,196"/> |
| <area shape="rect" id="node31" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="1635,251,1777,278"/> |
| <area shape="rect" id="node46" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="960,333,1095,360"/> |
| <area shape="rect" id="node47" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="1171,169,1305,196"/> |
| <area shape="rect" id="node48" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="4451,251,4601,278"/> |
| <area shape="rect" id="node49" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="4316,169,4408,196"/> |
| <area shape="rect" id="node50" href="expr__scalar-inl_8h.html" title="definitions of operators in expression with respect to scalar this file will be included several time..." alt="" coords="2943,169,3080,196"/> |
| <area shape="rect" id="node23" href="half_8h.html" title="definition of half (float16) type. " alt="" coords="989,483,1055,509"/> |
| <area shape="rect" id="node24" href="half2_8h.html" title="definition of vector float16, half2 type. " alt="" coords="1079,483,1154,509"/> |
| <area shape="rect" id="node25" href="bfloat_8h.html" title="definition of bfloat type. " alt="" coords="1179,483,1257,509"/> |
| <area shape="rect" id="node32" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="2316,251,2491,278"/> |
| <area shape="rect" id="node33" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="2515,244,2660,285"/> |
| <area shape="rect" id="node34" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="3411,251,3622,278"/> |
| <area shape="rect" id="node35" href="reshape_8h.html" title="support for reshape " alt="" coords="2685,251,2847,278"/> |
| <area shape="rect" id="node36" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="3646,251,3817,278"/> |
| <area shape="rect" id="node37" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="2872,251,3055,278"/> |
| <area shape="rect" id="node38" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="3841,244,3984,285"/> |
| <area shape="rect" id="node39" href="spatial__unpool_8h.html" title="support for unpool " alt="" coords="4008,244,4151,285"/> |
| <area shape="rect" id="node40" href="channel__pool_8h.html" title="support for chpool " alt="" coords="4175,244,4325,285"/> |
| <area shape="rect" id="node41" href="channel__unpool_8h.html" title="./extension/channel\l_unpool.h" alt="" coords="3238,244,3387,285"/> |
| <area shape="rect" id="node42" href="pad_8h.html" title="support for pad " alt="" coords="3079,251,3213,278"/> |
| <area shape="rect" id="node43" href="crop_8h.html" title="support for crop " alt="" coords="1802,251,1941,278"/> |
| <area shape="rect" id="node44" href="mirror_8h.html" title="support for mirror " alt="" coords="1965,251,2114,278"/> |
| <area shape="rect" id="node45" href="concat_8h.html" title="support for concatenation " alt="" coords="2139,251,2292,278"/> |
| </map> |
| </div> |
| </div><div class="textblock"><div class="dynheader"> |
| This graph shows which files directly or indirectly include this file:</div> |
| <div class="dyncontent"> |
| <div class="center"><img src="3rdparty_2mshadow_2mshadow_2io_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8hdep" alt=""/></div> |
| <map name="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8hdep" id="_2work_2mxnet_23rdparty_2mshadow_2mshadow_2io_8hdep"> |
| <area shape="rect" id="node2" href="tensor_8h.html" title="header file of tensor data structure and functions This lib requires explicit memory allocation and d..." alt="" coords="4977,95,5189,136"/> |
| <area shape="rect" id="node32" href="tensor__container_8h.html" title="tensor container that does memory allocation and resize like STL " alt="" coords="5985,184,6186,240"/> |
| <area shape="rect" id="node3" href="expr__engine-inl_8h.html" title="definitions of how expressions should be evaluated " alt="" coords="4856,184,5045,240"/> |
| <area shape="rect" id="node26" href="stream__gpu-inl_8h.html" title="implementation of GPU code " alt="" coords="5678,184,5885,240"/> |
| <area shape="rect" id="node27" href="tensor__cpu-inl_8h.html" title="implementation of CPU host code " alt="" coords="2034,288,2235,344"/> |
| <area shape="rect" id="node28" href="packet-inl_8h.html" title="Generic packet vectorization code. " alt="" coords="2295,191,2532,233"/> |
| <area shape="rect" id="node31" href="tensor__gpu-inl_8h.html" title="implementation of GPU host code " alt="" coords="4579,184,4781,240"/> |
| <area shape="rect" id="node33" href="random_8h.html" title="Random inline functions for tensor. " alt="" coords="6471,295,6694,337"/> |
| <area shape="rect" id="node34" href="include_2mxnet_2base_8h.html" title="/work/mxnet/include\l/mxnet/base.h" alt="" coords="5499,191,5653,233"/> |
| <area shape="rect" id="node39" href="include_2mxnet_2op__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/op_attr_types.h" alt="" coords="5477,503,5651,545"/> |
| <area shape="rect" id="node4" href="extension_8h.html" title="some extension of expressions, used to support something beyond elementwise op " alt="" coords="2767,295,3003,337"/> |
| <area shape="rect" id="node5" href="implicit__gemm_8h.html" title="support for implicit GEMM operation " alt="" coords="5,392,229,448"/> |
| <area shape="rect" id="node6" href="broadcast_8h.html" title="support for broadcast and repmat " alt="" coords="4261,392,4485,448"/> |
| <area shape="rect" id="node7" href="unpack__patch2col_8h.html" title="support for unpack " alt="" coords="4509,392,4733,448"/> |
| <area shape="rect" id="node8" href="pack__col2patch_8h.html" title="support for pack " alt="" coords="4757,392,4981,448"/> |
| <area shape="rect" id="node9" href="reshape_8h.html" title="support for reshape " alt="" coords="5005,392,5229,448"/> |
| <area shape="rect" id="node10" href="swapaxis_8h.html" title="support for swapaxis " alt="" coords="253,392,477,448"/> |
| <area shape="rect" id="node11" href="reduceto1d_8h.html" title="support for sum_rows and sumall_except_dim " alt="" coords="501,392,725,448"/> |
| <area shape="rect" id="node12" href="spatial__pool_8h.html" title="support for spatial pooling " alt="" coords="749,392,973,448"/> |
| <area shape="rect" id="node13" href="spatial__unpool_8h.html" title="support for unpool " alt="" coords="997,392,1221,448"/> |
| <area shape="rect" id="node14" href="channel__pool_8h.html" title="support for chpool " alt="" coords="1245,392,1469,448"/> |
| <area shape="rect" id="node15" href="channel__unpool_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/channel_unpool.h" alt="" coords="1493,392,1717,448"/> |
| <area shape="rect" id="node16" href="pad_8h.html" title="support for pad " alt="" coords="1741,399,2005,441"/> |
| <area shape="rect" id="node17" href="crop_8h.html" title="support for crop " alt="" coords="2029,392,2253,448"/> |
| <area shape="rect" id="node18" href="mirror_8h.html" title="support for mirror " alt="" coords="2277,392,2501,448"/> |
| <area shape="rect" id="node19" href="concat_8h.html" title="support for concatenation " alt="" coords="2525,392,2749,448"/> |
| <area shape="rect" id="node20" href="choose_8h.html" title="support for implicit array selection operation " alt="" coords="2773,392,2997,448"/> |
| <area shape="rect" id="node21" href="fill_8h.html" title="support for implicit array filling operation " alt="" coords="3021,392,3245,448"/> |
| <area shape="rect" id="node22" href="one__hot_8h.html" title="Create one-hot indicator array based on the index. " alt="" coords="3269,392,3493,448"/> |
| <area shape="rect" id="node23" href="slice_8h.html" title="support for slice a certain dimension. " alt="" coords="3517,392,3741,448"/> |
| <area shape="rect" id="node24" href="slice__ex_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/slice_ex.h" alt="" coords="3765,392,3989,448"/> |
| <area shape="rect" id="node25" href="take_8h.html" title="/work/mxnet/3rdparty\l/mshadow/mshadow/extension\l/take.h" alt="" coords="4013,392,4237,448"/> |
| <area shape="rect" id="node29" href="plain-inl_8h.html" title="support of plain packet that use the plain datatype. " alt="" coords="2311,288,2515,344"/> |
| <area shape="rect" id="node30" href="sse-inl_8h.html" title="support of sse2 packet optimization of some operations " alt="" coords="2539,288,2743,344"/> |
| <area shape="rect" id="node35" href="packed__func_8h.html" title="Type-erased function used across MXNET API. " alt="" coords="6222,496,6397,552"/> |
| <area shape="rect" id="node36" href="engine_8h.html" title="Engine that schedules all the operations according to dependency. " alt="" coords="5683,295,5837,337"/> |
| <area shape="rect" id="node37" href="include_2mxnet_2ndarray_8h.html" title="/work/mxnet/include\l/mxnet/ndarray.h" alt="" coords="5912,399,6067,441"/> |
| <area shape="rect" id="node38" href="include_2mxnet_2executor_8h.html" title="/work/mxnet/include\l/mxnet/executor.h" alt="" coords="5992,689,6147,731"/> |
| <area shape="rect" id="node40" href="include_2mxnet_2operator_8h.html" title="/work/mxnet/include\l/mxnet/operator.h" alt="" coords="5611,600,5765,641"/> |
| <area shape="rect" id="node41" href="operator__util_8h.html" title="Utility functions and registries to help quickly build new operators. [Deprecated] Use the register f..." alt="" coords="5254,689,5421,731"/> |
| <area shape="rect" id="node45" href="include_2mxnet_2io_8h.html" title="/work/mxnet/include\l/mxnet/io.h" alt="" coords="6043,503,6197,545"/> |
| <area shape="rect" id="node46" href="resource_8h.html" title="Global resource allocation handling. " alt="" coords="5560,399,5715,441"/> |
| <area shape="rect" id="node47" href="storage_8h.html" title="Storage manager across multiple devices. " alt="" coords="5912,295,6067,337"/> |
| <area shape="rect" id="node48" href="random__generator_8h.html" title="Parallel random number generator. " alt="" coords="5405,295,5608,337"/> |
| <area shape="rect" id="node49" href="rtc_8h.html" title="/work/mxnet/include\l/mxnet/rtc.h" alt="" coords="6243,295,6397,337"/> |
| <area shape="rect" id="node50" href="tensor__blob_8h.html" title="TBlob class that holds common representation of arbirary dimension tensor, can be used to transformed..." alt="" coords="5171,295,5331,337"/> |
| <area shape="rect" id="node44" href="utils_8h.html" title="Basic utilility functions. " alt="" coords="5479,779,5667,820"/> |
| <area shape="rect" id="node43" href="imperative_8h.html" title="/work/mxnet/include\l/mxnet/imperative.h" alt="" coords="5496,689,5651,731"/> |
| <area shape="rect" id="node42" href="include_2mxnet_2graph__attr__types_8h.html" title="/work/mxnet/include\l/mxnet/graph_attr_types.h" alt="" coords="5341,600,5536,641"/> |
| </map> |
| </div> |
| </div> |
| <p><a href="3rdparty_2mshadow_2mshadow_2io_8h_source.html">Go to the source code of this file.</a></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> |
| Classes</h2></td></tr> |
| <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmshadow_1_1utils_1_1IStream.html">mshadow::utils::IStream</a></td></tr> |
| <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">interface of stream I/O, used to serialize data, mshadow does not restricted to only this interface in SaveBinary/LoadBinary mshadow accept all class that implements Read and Write <a href="classmshadow_1_1utils_1_1IStream.html#details">More...</a><br /></td></tr> |
| <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| </table><table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> |
| Namespaces</h2></td></tr> |
| <tr class="memitem:namespacemshadow"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemshadow.html">mshadow</a></td></tr> |
| <tr class="memdesc:namespacemshadow"><td class="mdescLeft"> </td><td class="mdescRight">overloaded + operator between half_t and bf16_t <br /></td></tr> |
| <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:namespacemshadow_1_1utils"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemshadow_1_1utils.html">mshadow::utils</a></td></tr> |
| <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| </table><table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr class="memitem:ac4e8e743843b86f7a9c7cccec38f1303"><td class="memTemplParams" colspan="2">template<int dim, typename DType , typename TStream > </td></tr> |
| <tr class="memitem:ac4e8e743843b86f7a9c7cccec38f1303"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ac4e8e743843b86f7a9c7cccec38f1303">mshadow::SaveBinary</a> (TStream &fo, const Tensor< cpu, dim, DType > &src)</td></tr> |
| <tr class="memdesc:ac4e8e743843b86f7a9c7cccec38f1303"><td class="mdescLeft"> </td><td class="mdescRight">CPU/GPU: save a tensor by binary format, for GPU version, a temp Tensor<cpu,dim> storage will be allocated. <a href="namespacemshadow.html#ac4e8e743843b86f7a9c7cccec38f1303">More...</a><br /></td></tr> |
| <tr class="separator:ac4e8e743843b86f7a9c7cccec38f1303"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a4274e2af051c35e9c31b1f3076f5523b"><td class="memTemplParams" colspan="2">template<int dim, typename DType , typename TStream > </td></tr> |
| <tr class="memitem:a4274e2af051c35e9c31b1f3076f5523b"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#a4274e2af051c35e9c31b1f3076f5523b">mshadow::SaveBinary</a> (TStream &fo, const Tensor< gpu, dim, DType > &src)</td></tr> |
| <tr class="memdesc:a4274e2af051c35e9c31b1f3076f5523b"><td class="mdescLeft"> </td><td class="mdescRight">CPU/GPU: save a tensor by binary format, for GPU version, a temp Tensor<cpu,dim> storage will be allocated. <a href="namespacemshadow.html#a4274e2af051c35e9c31b1f3076f5523b">More...</a><br /></td></tr> |
| <tr class="separator:a4274e2af051c35e9c31b1f3076f5523b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad43315e17aadc0c14467dffb52401984"><td class="memTemplParams" colspan="2">template<int dim, typename DType , typename TStream > </td></tr> |
| <tr class="memitem:ad43315e17aadc0c14467dffb52401984"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ad43315e17aadc0c14467dffb52401984">mshadow::LoadBinary</a> (TStream &fi, Tensor< cpu, dim, DType > *dst, bool pre_alloc)</td></tr> |
| <tr class="memdesc:ad43315e17aadc0c14467dffb52401984"><td class="mdescLeft"> </td><td class="mdescRight">CPU/GPU: load a tensor by binary format, for GPU version, a temp Tensor<cpu,dim> storage will be allocated if pre_alloc is true , then space in dst is preallocated, and must have same shape of the tensor loaded if pre_alloc is false, then dst originally does not have space allocated, LoadBinary will allocate space for dst. <a href="namespacemshadow.html#ad43315e17aadc0c14467dffb52401984">More...</a><br /></td></tr> |
| <tr class="separator:ad43315e17aadc0c14467dffb52401984"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ac005b1b19d8d8964918006dc8e95182d"><td class="memTemplParams" colspan="2">template<int dim, typename DType , typename TStream > </td></tr> |
| <tr class="memitem:ac005b1b19d8d8964918006dc8e95182d"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacemshadow.html#ac005b1b19d8d8964918006dc8e95182d">mshadow::LoadBinary</a> (TStream &fi, Tensor< gpu, dim, DType > *dst, bool pre_alloc)</td></tr> |
| <tr class="memdesc:ac005b1b19d8d8964918006dc8e95182d"><td class="mdescLeft"> </td><td class="mdescRight">CPU/GPU: load a tensor by binary format, for GPU version, a temp Tensor<cpu,dim> storage will be allocated if pre_alloc is true , then space in dst is preallocated, and must have same shape of the tensor loaded if pre_alloc is false, then dst originally does not have space allocated, LoadBinary will allocate space for dst. <a href="namespacemshadow.html#ac005b1b19d8d8964918006dc8e95182d">More...</a><br /></td></tr> |
| <tr class="separator:ac005b1b19d8d8964918006dc8e95182d"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| </div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated on Wed Jun 8 2022 23:30:29 for mxnet by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.13 |
| </small></address> |
| </body> |
| </html> |