forked from FT_DSP/FT_DSP.gitlink.net
152 lines
7.4 KiB
HTML
152 lines
7.4 KiB
HTML
|
||
|
||
<!DOCTYPE html>
|
||
<html class="writer-html5" lang="zh-CN" data-content_root="../../">
|
||
<head>
|
||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>TensorarrayWrite — MindSpore Signal+ 使用手册 alpha 文档</title>
|
||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/table.css?v=72b86d3e" />
|
||
|
||
|
||
<script src="../../_static/jquery.js?v=5d32c60e"></script>
|
||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
||
<script src="../../_static/documentation_options.js?v=406e4f49"></script>
|
||
<script src="../../_static/doctools.js?v=9bcbadda"></script>
|
||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||
<script src="../../_static/translations.js?v=beaddf03"></script>
|
||
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||
<script src="../../_static/table.js?v=99ed15ba"></script>
|
||
<script src="../../_static/js/theme.js"></script>
|
||
<link rel="index" title="索引" href="../../genindex.html" />
|
||
<link rel="search" title="搜索" href="../../search.html" />
|
||
<link rel="next" title="Tensorlistfromtensor" href="tensorlistfromtensor.html" />
|
||
<link rel="prev" title="Tensorarrayread" href="tensorarrayread.html" />
|
||
</head>
|
||
|
||
<body class="wy-body-for-nav">
|
||
<div class="wy-grid-for-nav">
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||
<div class="wy-side-scroll">
|
||
<div class="wy-side-nav-search" >
|
||
|
||
|
||
|
||
<a href="../../index.html" class="icon icon-home">
|
||
MindSpore Signal+ 使用手册
|
||
</a>
|
||
<div role="search">
|
||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
||
<input type="text" name="q" placeholder="搜索文档" aria-label="搜索文档" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
</div>
|
||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="导航菜单">
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../../quickstart/index.html">快速入门</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../../appdevelop/index.html">应用开发示例</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../index.html">算子库支持</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../../refdoc/index.html">参考资料</a></li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="移动版导航菜单" >
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||
<a href="../../index.html">MindSpore Signal+ 使用手册</a>
|
||
</nav>
|
||
|
||
<div class="wy-nav-content">
|
||
<div class="rst-content">
|
||
<div role="navigation" aria-label="页面导航">
|
||
<ul class="wy-breadcrumbs">
|
||
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
|
||
<li class="breadcrumb-item"><a href="../index.html">算子库支持</a></li>
|
||
<li class="breadcrumb-item"><a href="dsplib_index.html">DSP Library C API Reference</a></li>
|
||
<li class="breadcrumb-item active">TensorarrayWrite</li>
|
||
<li class="wy-breadcrumbs-aside">
|
||
<a href="../../_sources/functionlib/dsplib/tensorarraywrite.rst.txt" rel="nofollow"> 查看页面源码</a>
|
||
</li>
|
||
</ul>
|
||
<hr/>
|
||
</div>
|
||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||
<div itemprop="articleBody">
|
||
|
||
<section id="tensorarraywrite">
|
||
<h1>TensorarrayWrite<a class="headerlink" href="#tensorarraywrite" title="Link to this heading"></a></h1>
|
||
<p>将张量写入到张量数组的指定索引位置。该算子不区分数据类型,适用于所有数据类型。</p>
|
||
<div class="math notranslate nohighlight">
|
||
\[\text{output\_data} = \text{handle\_data}[\text{index}]\]</div>
|
||
<p>该算子会将 <cite>handle_data[index]</cite> 指向的数据复制到 <cite>output_data</cite> 中,复制的大小为 <cite>handle_size[index]</cite> 字节。</p>
|
||
<dl class="simple">
|
||
<dt>输入:</dt><dd><ul class="simple">
|
||
<li><p><strong>handle_data</strong> - 张量数组的数据指针数组(void** 类型),每个元素指向一个张量的数据。</p></li>
|
||
<li><p><strong>handle_size</strong> - 每个张量的大小数组(int* 类型),<cite>handle_size[i]</cite> 表示 <cite>handle_data[i]</cite> 指向的数据大小(字节)。</p></li>
|
||
<li><p><strong>index</strong> - 读取的索引(int 类型),指定从 <cite>handle_data</cite> 数组中读取哪个张量。</p></li>
|
||
<li><p><strong>core_mask</strong> - 核掩码(int),仅共享存储版本需要。</p></li>
|
||
</ul>
|
||
</dd>
|
||
<dt>输出:</dt><dd><ul class="simple">
|
||
<li><p><strong>output_data</strong> - 输出数据指针(void* 类型),包含复制后的数据。</p></li>
|
||
<li><p><strong>output_size</strong> - 输出大小指针(int* 类型),指向存储输出大小的变量。调用后,<cite>*output_size</cite> 会被设置为 <cite>handle_size[index]</cite>。</p></li>
|
||
</ul>
|
||
</dd>
|
||
<dt>支持平台:</dt><dd><p><code class="docutils literal notranslate"><span class="pre">FT78NE</span></code>
|
||
<code class="docutils literal notranslate"><span class="pre">MT7004</span></code></p>
|
||
</dd>
|
||
</dl>
|
||
<div class="admonition note">
|
||
<p class="admonition-title">备注</p>
|
||
<ul class="simple">
|
||
<li><p>FT78NE 支持fp32, int16, int32, cplx64</p></li>
|
||
<li><p>MT7004 支持fp16, fp32, int16, int32, cplx64</p></li>
|
||
<li><p>算子会复制数据,输出数据与输入数据独立</p></li>
|
||
<li><p>调用前需要确保 <cite>output_data</cite> 指向的内存空间足够大(至少 <cite>handle_size[index]</cite> 字节)</p></li>
|
||
<li><p><cite>index</cite> 必须在 <cite>handle_data</cite> 数组的有效范围内</p></li>
|
||
</ul>
|
||
</div>
|
||
<p><strong>共享存储版本:</strong></p>
|
||
<p>见TensorArrayRead。</p>
|
||
<p><strong>私有存储版本:</strong></p>
|
||
<p>见TensorArrayRead。</p>
|
||
</section>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||
<a href="tensorarrayread.html" class="btn btn-neutral float-left" title="Tensorarrayread" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||
<a href="tensorlistfromtensor.html" class="btn btn-neutral float-right" title="Tensorlistfromtensor" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||
</div>
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>© 版权所有 2025 - 2026, NUDT-674。</p>
|
||
</div>
|
||
|
||
利用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 构建,使用的
|
||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">主题</a>
|
||
由 <a href="https://readthedocs.org">Read the Docs</a> 开发.
|
||
|
||
|
||
</footer>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
<script>
|
||
jQuery(function () {
|
||
SphinxRtdTheme.Navigation.enable(true);
|
||
});
|
||
</script>
|
||
|
||
</body>
|
||
</html> |