forked from nudt_dsp/netrans
141 lines
6.1 KiB
HTML
141 lines
6.1 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html lang="zh" data-content_root="./">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>export module — netrans 0.1 文档</title>
|
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=5ecbeea2" />
|
|
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=b08954a9" />
|
|
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
|
|
<script src="_static/documentation_options.js?v=52efc512"></script>
|
|
<script src="_static/doctools.js?v=9bcbadda"></script>
|
|
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
|
|
<link rel="index" title="索引" href="genindex.html" />
|
|
<link rel="search" title="搜索" href="search.html" />
|
|
<link rel="next" title="file_model module" href="file_model.html" />
|
|
<link rel="prev" title="example module" href="example.html" />
|
|
|
|
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
|
|
|
|
|
|
|
|
|
|
|
</head><body>
|
|
|
|
|
|
<div class="document">
|
|
<div class="documentwrapper">
|
|
<div class="bodywrapper">
|
|
|
|
|
|
<div class="body" role="main">
|
|
|
|
<section id="module-export">
|
|
<span id="export-module"></span><h1>export module<a class="headerlink" href="#module-export" title="Link to this heading">¶</a></h1>
|
|
<dl class="py class">
|
|
<dt class="sig sig-object py" id="export.Export">
|
|
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">export.</span></span><span class="sig-name descname"><span class="pre">Export</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">source_obj</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/export.html#Export"><span class="viewcode-link"><span class="pre">[源代码]</span></span></a><a class="headerlink" href="#export.Export" title="Link to this definition">¶</a></dt>
|
|
<dd><p>基类:<a class="reference internal" href="utils.html#utils.AttributeCopier" title="utils.AttributeCopier"><code class="xref py py-class docutils literal notranslate"><span class="pre">AttributeCopier</span></code></a></p>
|
|
<p>从实例化的 Netrans 中解析模型参数,并基于 pnnacc 导出模型ngb文件</p>
|
|
<dl class="field-list simple">
|
|
<dt class="field-odd">参数<span class="colon">:</span></dt>
|
|
<dd class="field-odd"><p><strong>Netrans</strong> (<em>class</em>) -- 实例化的Netrans类,包含 模型信息 和 Netrans 信息</p>
|
|
</dd>
|
|
</dl>
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="export.Export.export_network">
|
|
<span class="sig-name descname"><span class="pre">export_network</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#export.Export.export_network" title="Link to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="py function">
|
|
<dt class="sig sig-object py" id="export.main">
|
|
<span class="sig-prename descclassname"><span class="pre">export.</span></span><span class="sig-name descname"><span class="pre">main</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/export.html#main"><span class="viewcode-link"><span class="pre">[源代码]</span></span></a><a class="headerlink" href="#export.main" title="Link to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</section>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sphinxsidebar" role="navigation" aria-label="Main">
|
|
<div class="sphinxsidebarwrapper">
|
|
<h1 class="logo"><a href="index.html">netrans</a></h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<search id="searchbox" style="display: none" role="search">
|
|
<div class="searchformwrapper">
|
|
<form class="search" action="search.html" method="get">
|
|
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
|
|
<input type="submit" value="提交" />
|
|
</form>
|
|
</div>
|
|
</search>
|
|
<script>document.getElementById('searchbox').style.display = "block"</script><h3>导航</h3>
|
|
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
|
<ul class="current">
|
|
<li class="toctree-l1"><a class="reference internal" href="quick_start_guide.html">快速入门</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="netrans_cli.html">netrans_cli 使用</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="netrans_py.html">netrans_py 使用</a></li>
|
|
<li class="toctree-l1 current"><a class="reference internal" href="appendix.html">附录</a><ul class="current">
|
|
<li class="toctree-l2"><a class="reference internal" href="gen_api.html">gen api html & pdf by sphinx</a></li>
|
|
<li class="toctree-l2 current"><a class="reference internal" href="modules.html">netrans_py</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="relations">
|
|
<h3>Related Topics</h3>
|
|
<ul>
|
|
<li><a href="index.html">Documentation overview</a><ul>
|
|
<li><a href="appendix.html">附录</a><ul>
|
|
<li><a href="modules.html">netrans_py</a><ul>
|
|
<li>Previous: <a href="example.html" title="上一章">example module</a></li>
|
|
<li>Next: <a href="file_model.html" title="下一章">file_model module</a></li>
|
|
</ul></li>
|
|
</ul></li>
|
|
</ul></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="clearer"></div>
|
|
</div>
|
|
<div class="footer">
|
|
©2025, ccyh.
|
|
|
|
|
|
|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.3</a>
|
|
& <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
|
|
|
|
|
|
|
<a href="_sources/export.rst.txt"
|
|
rel="nofollow">Page source</a>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html> |