update supported_op.md, and add equal/log10 op doc.
This commit is contained in:
parent
20ab23016e
commit
ca0d1e9fd7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
# Sphinx build info version 1
|
||||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 7751dc06307578150521034718957d1a
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 0d3025befe3dc6f9dfad874d86b2ff0a
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
|
|
|||
|
|
@ -5,4 +5,6 @@ DSP Library C API Reference
|
|||
:maxdepth: 1
|
||||
|
||||
add
|
||||
fft_with_size
|
||||
equal
|
||||
fft_with_size
|
||||
log10
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
Equal
|
||||
=================
|
||||
|
||||
|
||||
**共享存储版本:**
|
||||
|
||||
.. c:function:: void i8_equal_s(int8_t* Input0, int8_t* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void i16_equal_s(int16_t* Input0, int16_t* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void i32_equal_s(int* Input0, int* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void hp_equal_s(half* Input0, half* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void fp_equal_s(float* Input0, float* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void dp_equal_s(double* Input0, double* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void c64_equal_s(float* Input0, float* Input1, bool* output,int length, int core_mask)
|
||||
.. c:function:: void c128_equal_s(double* Input0, double* Input1, bool* output, int length, int core_mask)
|
||||
|
||||
逐元素计算两个输入是否相等
|
||||
|
||||
.. math::
|
||||
|
||||
output_i = \begin{cases}
|
||||
\text{True}, & \text{if } Input0_i = Input1_i \\
|
||||
\text{False}, & \text{if } Input0_i \neq Input1_i
|
||||
\end{cases}
|
||||
|
||||
输入:
|
||||
- **Input0** - 第一个输入数据地址。
|
||||
- **Input1** - 第二个输入数据地址。
|
||||
- **length** - 计算长度。
|
||||
- **core_mask** - 核掩码。
|
||||
|
||||
输出:
|
||||
- **output** - 计算结果地址。
|
||||
|
||||
支持平台:
|
||||
``FT78NE``
|
||||
``MT7004``
|
||||
|
||||
.. note::
|
||||
- FT78NE 支持int8, int16, int32, fp32, fp64, cplx64, cplx128
|
||||
- MT7004 支持fp16, fp32, int16, int32, cplx64
|
||||
|
||||
**C调用示例:**
|
||||
|
||||
.. code-block:: c
|
||||
:linenos:
|
||||
:emphasize-lines: 10
|
||||
|
||||
//FT78NE示例
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
float *input0 = (float *)0xA0000000; //input在DDR空间
|
||||
float *input1 = (float *)0xB0000000;
|
||||
bool *output = (bool *)0xC0000000;
|
||||
int length = 1000;
|
||||
int core_mask = 0xff;
|
||||
fp_equal_p(input0, input1, output, length, core_mask);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
**私有存储版本:**
|
||||
|
||||
.. c:function:: void i8_equal_p(int8_t *Input0, int8_t *Input1, bool *output, int length)
|
||||
.. c:function:: void i16_equal_p(int16_t *Input0, int16_t *Input1, bool *output, int length)
|
||||
.. c:function:: void i32_equal_p(int32_t *Input0, int32_t *Input1, bool *output, int length)
|
||||
.. c:function:: void hp_equal_p(half* Input0, half* Input1, bool* output,int length)
|
||||
.. c:function:: void fp_equal_p(float* Input0, float* Input1, bool* output,int length)
|
||||
.. c:function:: void dp_equal_p(double* Input0, double* Input1, bool* output,int length)
|
||||
.. c:function:: void c64_equal_p(float *Input0, float *Input1, bool *output, int length)
|
||||
.. c:function:: void c128_equal_p(double *Input0, double *Input1, bool *output, int length)
|
||||
|
||||
逐元素计算两个输入是否相等
|
||||
|
||||
.. math::
|
||||
|
||||
output_i = \begin{cases}
|
||||
\text{True}, & \text{if } Input0_i = Input1_i \\
|
||||
\text{False}, & \text{if } Input0_i \neq Input1_i
|
||||
\end{cases}
|
||||
|
||||
|
||||
输入:
|
||||
- **Input0** - 第一个输入数据地址。
|
||||
- **Input1** - 第二个输入数据地址。
|
||||
- **length** - 计算长度。
|
||||
|
||||
输出:
|
||||
- **output** - 计算结果地址。
|
||||
|
||||
支持平台:
|
||||
``FT78NE``
|
||||
``MT7004``
|
||||
|
||||
.. note::
|
||||
- FT78NE 支持int8, int16, int32, fp32, fp64, cplx64, cplx128
|
||||
- MT7004 支持fp16, fp32, int16, int32, cplx64
|
||||
|
||||
**C调用示例:**
|
||||
|
||||
.. code-block:: c
|
||||
:linenos:
|
||||
:emphasize-lines: 9
|
||||
|
||||
//FT78NE示例
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
float *input0 = (float *)0x10000000; //input在L2空间
|
||||
float *input1 = (float *)0x10001000;
|
||||
bool *output = (bool *)0xC0000000;
|
||||
int length = 1000;
|
||||
fp_equal_p(input0, input1, output, length);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
Log10
|
||||
=================
|
||||
|
||||
**共享存储版本:**
|
||||
|
||||
.. c:function:: void fp_log10_s( float* input1,int n,float* output,int mask);
|
||||
|
||||
快速计算以10为底的对数
|
||||
|
||||
.. math::
|
||||
|
||||
output_i = \log_{10}(input1_i)
|
||||
|
||||
输入:
|
||||
- **Input1** - 输入数据地址。
|
||||
- **n** - 计算长度。
|
||||
- **mask** - 核掩码。
|
||||
|
||||
输出:
|
||||
- **output** - 计算结果地址。
|
||||
|
||||
支持平台:
|
||||
``MT7004``
|
||||
|
||||
.. note::
|
||||
- MT7004 支持fp32
|
||||
|
||||
**C调用示例:**
|
||||
|
||||
.. code-block:: c
|
||||
:linenos:
|
||||
:emphasize-lines: 8
|
||||
|
||||
//MT7004示例
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
float *input1 = (float *)0x100000000; //input在DDR空间
|
||||
float *output = (float *)0x100001000;
|
||||
int n = 1000;
|
||||
int mask = 0xf;
|
||||
fp_log10_s(input1, n, output, mask);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1 +1,240 @@
|
|||
# 算子库支持情况
|
||||
# 算子库支持情况
|
||||
|
||||
|
||||
- MindSpore Lite支持不同硬件后端的算子列表
|
||||
<div class="scrollable-table-container">
|
||||
|
||||
| 操作名 <br/> | CPU<br/>FP16 | CPU<br/>FP32 | CPU<br/>Int32 | CPU<br/>Int8 | CPU<br/>UInt8 | CPU<br/>Bool | 7004 DSP<br/>FP16 | 7004 DSP<br/>FP32 | 7004 DSP<br/>Int16 | 7004 DSP<br/>Cplx64 | 7004 DSP<br/>Int32 | 6678e DSP<br/>FP32 | 6678e DSP<br/>FP64 | 6678e DSP<br/>Cplx64 | 6678e DSP<br/>Cplx128 | 6678e DSP<br/>Int8 | 6678e DSP<br/>Int16 | 6678e DSP<br/>Int32 |
|
||||
| ----------------------------------- | ---------- | ---------- | ------------- | ---------- | ----------- | ------------ | --------------- | --------------- | --------------- | --------------- | ------------------ | ---------------- | ---------------- | ------------------ | ------------------ | ---------------- | ---------------- | ------------------ |
|
||||
| Abs | ✅ | ✅ | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | |
|
||||
| AbsGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Activation | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| ActivationGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Adam | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| AddFusion | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| AdderFusion | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| AddGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| AddN | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Affine | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| All | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| AllGather | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| ApplyMomentum | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Assert | ✅ | ✅ | | | | ✅ | | | | | | | | | | | | |
|
||||
| Assign | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| ArgmaxFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| ArgminFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| AvgPoolFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| AvgPoolGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| BatchNorm | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| BatchNormGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| BatchToSpace | | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| BatchToSpaceND | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| BiasAdd | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| BiasAddGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| BinaryCrossEntropy | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| BinaryCrossEntropyGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| BroadcastTo | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| Call | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| Cast | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| Ceil | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Clip | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Concat | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| ConstantOfShape | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Conv2DFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Conv2DBackpropFilterFusion | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Conv2DBackpropInputFusion | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Conv2dTransposeFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Cos | ✅ | ✅ | | ✅ | ✅ | | | ✅ | | | | | | | | | | |
|
||||
| Crop | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| CropAndResize | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| CumSum | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| CustomExtractFeatures | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| CustomNormalize | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| CustomPredict | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| DEConv2DGradFilter | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| DepthToSpace | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| DetectionPostProcess | | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| DivFusion | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| DivGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Dropout | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| DropoutGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| DynamicQuant | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Eltwise | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Elu | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Equal | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| EmbeddingLookupFusion | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Erf | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| ExpFusion | ✅ | ✅ | | | | | | ✅ | |✅ | |✅ | | | | | | |
|
||||
| ExpandDims | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| Fill | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| Flatten | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| FlattenGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Floor | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| FloorDiv | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| FloorMod | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| FullConnection | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| FusedBatchNorm | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| GatherNd | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| Gather | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| GatherD | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| GLU | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Greater | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| GreaterEqual | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| GroupNormFusion | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| GRU | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| HashtableLookup | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| InstanceNorm | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| InvertPermutation | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| IsFinite | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| L2NormalizeFusion | | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| LayerNormFusion | ✅ | ✅ | | ✅ | | | | | | | | | | | | | | |
|
||||
| LayerNormGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LeakyReLU | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Less | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| LessEqual | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| LRN | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Log | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Log1p | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LogGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LogicalAnd | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| LogicalNot | ✅ | ✅ | | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| LogicalOr | ✅ | ✅ | | | | ✅ | | | | | | | | | | | | |
|
||||
| LogSoftmax | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LshProjection | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LSTM | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LSTMGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LSTMGradData | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| LSTMGradWeight | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| MatMulFusion | ✅ | ✅ | | ✅ | ✅ | | |✅ | | | |✅ | | | | | | |
|
||||
| Maximum | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| MaximumGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| MaxPoolFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| MaxPoolGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Merge | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Minimum | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| MinimumGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Mod | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| MulFusion | ✅ | ✅ | ✅ | ✅ | ✅ | | | | |✅ | | | | | | | | |
|
||||
| MulGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Neg | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| NegGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| NLLLoss | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| NLLLossGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| NotEqual | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| NonMaxSupppression | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| NonZero | | | | | | ✅ | | | | | | | | | | | | |
|
||||
| OneHot | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| OnesLike | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| PadFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| PartialFusion | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| PowFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | |✅ | | | | | | |
|
||||
| PowerGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| PriorBox | | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| PReLUFusion | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| QuantDTypeCast | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| RaggedRange | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| RandomNormal | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| RandomStandardNormal | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Range | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Rank | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| RealDiv | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Reciprocal | ✅ | ✅ | | ✅ | | | | | | | | | | | | | | |
|
||||
| ReduceFusion | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| ReduceScatter | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Reshape | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | |
|
||||
| Resize | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| ResizeGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| ReverseV2 | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| ReverseSequence | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| ROIPooling | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Round | ✅ | ✅ | | ✅ | ✅ | | | ✅ | | | | | | | | | | |
|
||||
| Rsqrt | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| RsqrtGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Select | | ✅ | | | | ✅ | | | | | | | | | | | | |
|
||||
| Selu | | | | | | | | | | | | | | | | | | |
|
||||
| ScaleFusion | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| ScatterNd | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| ScatterNdUpdate | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| SGD | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Shape | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| SigmoidCroosEntropyWithLogits | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| SigmoidCroosEntropyWithLogitsGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Sin | ✅ | ✅ | | ✅ | ✅ | | | ✅ | | | | | | | | | | |
|
||||
| Size | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| SliceFusion | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SkipGram | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| SmoothL1Loss | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| SmoothL1LossGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Softmax | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SoftmaxGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Softplus | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| SpaceToBatch | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SpaceToBatchND | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SpaceToDepth | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| SparseToDense | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| SparseSoftmaxCrossEntropyWithLogits | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Splice | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Split | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SplitWithOverlap | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Sqrt | ✅ | ✅ | | ✅ | ✅ | | | ✅ | | | | | | | | | | |
|
||||
| SqrtGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Square | ✅ | ✅ | | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SquaredDifference | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Squeeze | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| StridedSlice | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| StridedSliceGrad | ✅ | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Stack | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| SubFusion | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| SubGrad | | ✅ | | | | | | | | | | | | | | | | |
|
||||
| Switch | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| SwitchLayer | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| TensorListFromTensor | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TensorListGetItem | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TensorListReserve | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TensorListSetItem | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TensorListStack | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TensorScatterAdd | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| TileFusion | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| TopKFusion | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | | |
|
||||
| Transpose | ✅ | ✅ | ✅ | ✅ | | ✅ | | | |✅ | | | | | | | | |
|
||||
| UniformReal | | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Unique | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| UnsortedSegmentSum | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Unsqueeze | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | | | | | | | | |
|
||||
| Unstack | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
| Where | ✅ | ✅ | ✅ | | | ✅ | | | | | | | | | | | | |
|
||||
| ZerosLike | ✅ | ✅ | ✅ | | | | | | | | | | | | | | | |
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
- 支持不同硬件后端的自定义算子列表:
|
||||
|
||||
<div class="scrollable-table-container">
|
||||
|
||||
| 操作名 <br/> | 7004 DSP<br/>FP16 | 7004 DSP<br/>FP32 | 7004 DSP<br/>Int8 | 7004 DSP<br/>Cplx64 | 6678e DSP<br/>FP16 | 6678e DSP<br/>FP32 | 6678e DSP<br/>Int8 | 6678e DSP<br/>Cplx64 |
|
||||
| ----------------------------------- | --------------- | --------------- | --------------- | ----------------- | ---------------- | ---------------- | ---------------- | ------------------ |
|
||||
| Amzipp | | | |✅ | | | | |
|
||||
| ArcSin | |✅ | | | | | | |
|
||||
| AzimuthFFTFFTShift | | | |✅ | | | | |
|
||||
| AzimuthIFFT | | | |✅ | | | | |
|
||||
| Bitrev | | | |✅ | | | | |
|
||||
| ComplexAbs | | | |✅ | | | |✅ |
|
||||
| Cvmulcv | | | |✅ | | | | |
|
||||
| CvmulcvIFFT | | | |✅ | | | | |
|
||||
| FFT_NoBitrev | | | |✅ | | | | |
|
||||
| FFT_Time | | | |✅ | | | | |
|
||||
| FFT | | | |✅ | | | |✅ |
|
||||
| FFTShift | | | |✅ | | | | |
|
||||
| FourPointInterpolatory | | | |✅ | | | | |
|
||||
| IFFT_NoBitrev | | | |✅ | | | | |
|
||||
| IFFT_Time | | | |✅ | | | | |
|
||||
| IFFT | | | |✅ | | | | |
|
||||
| PhaseMul | | | |✅ | | | | |
|
||||
| RangFFT | | | |✅ | | | | |
|
||||
| Reverse | | | |✅ | | | | |
|
||||
| Tdpp | |✅ | | | | | | |
|
||||
| VecAtan | |✅ | | | | | | |
|
||||
| Cfar | | | | | |✅ | | |
|
||||
|
||||
</div>
|
||||
|
|
@ -1,5 +1,12 @@
|
|||
/*
|
||||
* basic.css
|
||||
* ~~~~~~~~~
|
||||
*
|
||||
* Sphinx stylesheet -- basic theme.
|
||||
*
|
||||
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/* -- main layout ----------------------------------------------------------- */
|
||||
|
|
@ -108,11 +115,15 @@ img {
|
|||
/* -- search page ----------------------------------------------------------- */
|
||||
|
||||
ul.search {
|
||||
margin-top: 10px;
|
||||
margin: 10px 0 0 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.search li {
|
||||
padding: 5px 0;
|
||||
padding: 5px 0 5px 20px;
|
||||
background-image: url(file.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 7px;
|
||||
}
|
||||
|
||||
ul.search li a {
|
||||
|
|
@ -226,10 +237,6 @@ a.headerlink {
|
|||
visibility: hidden;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #551A8B;
|
||||
}
|
||||
|
||||
h1:hover > a.headerlink,
|
||||
h2:hover > a.headerlink,
|
||||
h3:hover > a.headerlink,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,12 @@
|
|||
/*
|
||||
* doctools.js
|
||||
* ~~~~~~~~~~~
|
||||
*
|
||||
* Base JavaScript utilities for all Sphinx HTML documentation.
|
||||
*
|
||||
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const DOCUMENTATION_OPTIONS = {
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
||||
VERSION: 'alpha',
|
||||
LANGUAGE: 'zh-CN',
|
||||
COLLAPSE_INDEX: false,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
/*
|
||||
* language_data.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* This script contains the language-specific data used by searchtools.js,
|
||||
* namely the list of stopwords, stemmer, scorer and splitter.
|
||||
*
|
||||
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
|
||||
|
||||
|
||||
/* Non-minified version is copied as a separate JS file, if available */
|
||||
/* Non-minified version is copied as a separate JS file, is available */
|
||||
|
||||
/**
|
||||
* Porter Stemmer
|
||||
|
|
|
|||
|
|
@ -1,5 +1,12 @@
|
|||
/*
|
||||
* searchtools.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for the full-text search.
|
||||
*
|
||||
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
|
|
@ -13,7 +20,7 @@ if (typeof Scorer === "undefined") {
|
|||
// and returns the new score.
|
||||
/*
|
||||
score: result => {
|
||||
const [docname, title, anchor, descr, score, filename, kind] = result
|
||||
const [docname, title, anchor, descr, score, filename] = result
|
||||
return score
|
||||
},
|
||||
*/
|
||||
|
|
@ -40,14 +47,6 @@ if (typeof Scorer === "undefined") {
|
|||
};
|
||||
}
|
||||
|
||||
// Global search result kind enum, used by themes to style search results.
|
||||
class SearchResultKind {
|
||||
static get index() { return "index"; }
|
||||
static get object() { return "object"; }
|
||||
static get text() { return "text"; }
|
||||
static get title() { return "title"; }
|
||||
}
|
||||
|
||||
const _removeChildren = (element) => {
|
||||
while (element && element.lastChild) element.removeChild(element.lastChild);
|
||||
};
|
||||
|
|
@ -58,20 +57,16 @@ const _removeChildren = (element) => {
|
|||
const _escapeRegExp = (string) =>
|
||||
string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
|
||||
|
||||
const _displayItem = (item, searchTerms, highlightTerms) => {
|
||||
const _displayItem = (item, searchTerms) => {
|
||||
const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
|
||||
const docUrlRoot = DOCUMENTATION_OPTIONS.URL_ROOT;
|
||||
const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
|
||||
const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
|
||||
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
|
||||
const contentRoot = document.documentElement.dataset.content_root;
|
||||
|
||||
const [docName, title, anchor, descr, score, _filename, kind] = item;
|
||||
const [docName, title, anchor, descr, score, _filename] = item;
|
||||
|
||||
let listItem = document.createElement("li");
|
||||
// Add a class representing the item's type:
|
||||
// can be used by a theme's CSS selector for styling
|
||||
// See SearchResultKind for the class names.
|
||||
listItem.classList.add(`kind-${kind}`);
|
||||
let requestUrl;
|
||||
let linkUrl;
|
||||
if (docBuilder === "dirhtml") {
|
||||
|
|
@ -80,35 +75,28 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
|
|||
if (dirname.match(/\/index\/$/))
|
||||
dirname = dirname.substring(0, dirname.length - 6);
|
||||
else if (dirname === "index/") dirname = "";
|
||||
requestUrl = contentRoot + dirname;
|
||||
requestUrl = docUrlRoot + dirname;
|
||||
linkUrl = requestUrl;
|
||||
} else {
|
||||
// normal html builders
|
||||
requestUrl = contentRoot + docName + docFileSuffix;
|
||||
requestUrl = docUrlRoot + docName + docFileSuffix;
|
||||
linkUrl = docName + docLinkSuffix;
|
||||
}
|
||||
let linkEl = listItem.appendChild(document.createElement("a"));
|
||||
linkEl.href = linkUrl + anchor;
|
||||
linkEl.dataset.score = score;
|
||||
linkEl.innerHTML = title;
|
||||
if (descr) {
|
||||
if (descr)
|
||||
listItem.appendChild(document.createElement("span")).innerHTML =
|
||||
" (" + descr + ")";
|
||||
// highlight search terms in the description
|
||||
if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
|
||||
highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
|
||||
}
|
||||
else if (showSearchSummary)
|
||||
fetch(requestUrl)
|
||||
.then((responseData) => responseData.text())
|
||||
.then((data) => {
|
||||
if (data)
|
||||
listItem.appendChild(
|
||||
Search.makeSearchSummary(data, searchTerms, anchor)
|
||||
Search.makeSearchSummary(data, searchTerms)
|
||||
);
|
||||
// highlight search terms in the summary
|
||||
if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
|
||||
highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
|
||||
});
|
||||
Search.output.appendChild(listItem);
|
||||
};
|
||||
|
|
@ -120,46 +108,27 @@ const _finishSearch = (resultCount) => {
|
|||
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
|
||||
);
|
||||
else
|
||||
Search.status.innerText = Documentation.ngettext(
|
||||
"Search finished, found one page matching the search query.",
|
||||
"Search finished, found ${resultCount} pages matching the search query.",
|
||||
resultCount,
|
||||
).replace('${resultCount}', resultCount);
|
||||
Search.status.innerText = _(
|
||||
`Search finished, found ${resultCount} page(s) matching the search query.`
|
||||
);
|
||||
};
|
||||
const _displayNextItem = (
|
||||
results,
|
||||
resultCount,
|
||||
searchTerms,
|
||||
highlightTerms,
|
||||
searchTerms
|
||||
) => {
|
||||
// results left, load the summary and display it
|
||||
// this is intended to be dynamic (don't sub resultsCount)
|
||||
if (results.length) {
|
||||
_displayItem(results.pop(), searchTerms, highlightTerms);
|
||||
_displayItem(results.pop(), searchTerms);
|
||||
setTimeout(
|
||||
() => _displayNextItem(results, resultCount, searchTerms, highlightTerms),
|
||||
() => _displayNextItem(results, resultCount, searchTerms),
|
||||
5
|
||||
);
|
||||
}
|
||||
// search finished, update title and status message
|
||||
else _finishSearch(resultCount);
|
||||
};
|
||||
// Helper function used by query() to order search results.
|
||||
// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
|
||||
// Order the results by score (in opposite order of appearance, since the
|
||||
// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
|
||||
const _orderResultsByScoreThenName = (a, b) => {
|
||||
const leftScore = a[4];
|
||||
const rightScore = b[4];
|
||||
if (leftScore === rightScore) {
|
||||
// same score: sort alphabetically
|
||||
const leftTitle = a[1].toLowerCase();
|
||||
const rightTitle = b[1].toLowerCase();
|
||||
if (leftTitle === rightTitle) return 0;
|
||||
return leftTitle > rightTitle ? -1 : 1; // inverted is intentional
|
||||
}
|
||||
return leftScore > rightScore ? 1 : -1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Default splitQuery function. Can be overridden in ``sphinx.search`` with a
|
||||
|
|
@ -183,26 +152,13 @@ const Search = {
|
|||
_queued_query: null,
|
||||
_pulse_status: -1,
|
||||
|
||||
htmlToText: (htmlString, anchor) => {
|
||||
htmlToText: (htmlString) => {
|
||||
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
|
||||
for (const removalQuery of [".headerlink", "script", "style"]) {
|
||||
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
|
||||
}
|
||||
if (anchor) {
|
||||
const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`);
|
||||
if (anchorContent) return anchorContent.textContent;
|
||||
|
||||
console.warn(
|
||||
`Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.`
|
||||
);
|
||||
}
|
||||
|
||||
// if anchor not specified or not found, fall back to main content
|
||||
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
|
||||
const docContent = htmlElement.querySelector('[role="main"]');
|
||||
if (docContent) return docContent.textContent;
|
||||
|
||||
if (docContent !== undefined) return docContent.textContent;
|
||||
console.warn(
|
||||
"Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template."
|
||||
"Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template."
|
||||
);
|
||||
return "";
|
||||
},
|
||||
|
|
@ -255,7 +211,6 @@ const Search = {
|
|||
searchSummary.classList.add("search-summary");
|
||||
searchSummary.innerText = "";
|
||||
const searchList = document.createElement("ul");
|
||||
searchList.setAttribute("role", "list");
|
||||
searchList.classList.add("search");
|
||||
|
||||
const out = document.getElementById("search-results");
|
||||
|
|
@ -276,7 +231,16 @@ const Search = {
|
|||
else Search.deferQuery(query);
|
||||
},
|
||||
|
||||
_parseQuery: (query) => {
|
||||
/**
|
||||
* execute search (requires search index to be loaded)
|
||||
*/
|
||||
query: (query) => {
|
||||
const filenames = Search._index.filenames;
|
||||
const docNames = Search._index.docnames;
|
||||
const titles = Search._index.titles;
|
||||
const allTitles = Search._index.alltitles;
|
||||
const indexEntries = Search._index.indexentries;
|
||||
|
||||
// stem the search terms and add them to the correct list
|
||||
const stemmer = new Stemmer();
|
||||
const searchTerms = new Set();
|
||||
|
|
@ -312,40 +276,22 @@ const Search = {
|
|||
// console.info("required: ", [...searchTerms]);
|
||||
// console.info("excluded: ", [...excludedTerms]);
|
||||
|
||||
return [query, searchTerms, excludedTerms, highlightTerms, objectTerms];
|
||||
},
|
||||
|
||||
/**
|
||||
* execute search (requires search index to be loaded)
|
||||
*/
|
||||
_performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => {
|
||||
const filenames = Search._index.filenames;
|
||||
const docNames = Search._index.docnames;
|
||||
const titles = Search._index.titles;
|
||||
const allTitles = Search._index.alltitles;
|
||||
const indexEntries = Search._index.indexentries;
|
||||
|
||||
// Collect multiple result groups to be sorted separately and then ordered.
|
||||
// Each is an array of [docname, title, anchor, descr, score, filename, kind].
|
||||
const normalResults = [];
|
||||
const nonMainIndexResults = [];
|
||||
|
||||
// array of [docname, title, anchor, descr, score, filename]
|
||||
let results = [];
|
||||
_removeChildren(document.getElementById("search-progress"));
|
||||
|
||||
const queryLower = query.toLowerCase().trim();
|
||||
const queryLower = query.toLowerCase();
|
||||
for (const [title, foundTitles] of Object.entries(allTitles)) {
|
||||
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
|
||||
if (title.toLowerCase().includes(queryLower) && (queryLower.length >= title.length/2)) {
|
||||
for (const [file, id] of foundTitles) {
|
||||
const score = Math.round(Scorer.title * queryLower.length / title.length);
|
||||
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
|
||||
normalResults.push([
|
||||
let score = Math.round(100 * queryLower.length / title.length)
|
||||
results.push([
|
||||
docNames[file],
|
||||
titles[file] !== title ? `${titles[file]} > ${title}` : title,
|
||||
id !== null ? "#" + id : "",
|
||||
null,
|
||||
score + boost,
|
||||
score,
|
||||
filenames[file],
|
||||
SearchResultKind.title,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
@ -354,48 +300,46 @@ const Search = {
|
|||
// search for explicit entries in index directives
|
||||
for (const [entry, foundEntries] of Object.entries(indexEntries)) {
|
||||
if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) {
|
||||
for (const [file, id, isMain] of foundEntries) {
|
||||
const score = Math.round(100 * queryLower.length / entry.length);
|
||||
const result = [
|
||||
for (const [file, id] of foundEntries) {
|
||||
let score = Math.round(100 * queryLower.length / entry.length)
|
||||
results.push([
|
||||
docNames[file],
|
||||
titles[file],
|
||||
id ? "#" + id : "",
|
||||
null,
|
||||
score,
|
||||
filenames[file],
|
||||
SearchResultKind.index,
|
||||
];
|
||||
if (isMain) {
|
||||
normalResults.push(result);
|
||||
} else {
|
||||
nonMainIndexResults.push(result);
|
||||
}
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// lookup as object
|
||||
objectTerms.forEach((term) =>
|
||||
normalResults.push(...Search.performObjectSearch(term, objectTerms))
|
||||
results.push(...Search.performObjectSearch(term, objectTerms))
|
||||
);
|
||||
|
||||
// lookup as search terms in fulltext
|
||||
normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms));
|
||||
results.push(...Search.performTermsSearch(searchTerms, excludedTerms));
|
||||
|
||||
// let the scorer override scores with a custom scoring function
|
||||
if (Scorer.score) {
|
||||
normalResults.forEach((item) => (item[4] = Scorer.score(item)));
|
||||
nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item)));
|
||||
}
|
||||
if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item)));
|
||||
|
||||
// Sort each group of results by score and then alphabetically by name.
|
||||
normalResults.sort(_orderResultsByScoreThenName);
|
||||
nonMainIndexResults.sort(_orderResultsByScoreThenName);
|
||||
|
||||
// Combine the result groups in (reverse) order.
|
||||
// Non-main index entries are typically arbitrary cross-references,
|
||||
// so display them after other results.
|
||||
let results = [...nonMainIndexResults, ...normalResults];
|
||||
// now sort the results by score (in opposite order of appearance, since the
|
||||
// display function below uses pop() to retrieve items) and then
|
||||
// alphabetically
|
||||
results.sort((a, b) => {
|
||||
const leftScore = a[4];
|
||||
const rightScore = b[4];
|
||||
if (leftScore === rightScore) {
|
||||
// same score: sort alphabetically
|
||||
const leftTitle = a[1].toLowerCase();
|
||||
const rightTitle = b[1].toLowerCase();
|
||||
if (leftTitle === rightTitle) return 0;
|
||||
return leftTitle > rightTitle ? -1 : 1; // inverted is intentional
|
||||
}
|
||||
return leftScore > rightScore ? 1 : -1;
|
||||
});
|
||||
|
||||
// remove duplicate search results
|
||||
// note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept
|
||||
|
|
@ -409,19 +353,14 @@ const Search = {
|
|||
return acc;
|
||||
}, []);
|
||||
|
||||
return results.reverse();
|
||||
},
|
||||
|
||||
query: (query) => {
|
||||
const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query);
|
||||
const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms);
|
||||
results = results.reverse();
|
||||
|
||||
// for debugging
|
||||
//Search.lastresults = results.slice(); // a copy
|
||||
// console.info("search results:", Search.lastresults);
|
||||
|
||||
// print the results
|
||||
_displayNextItem(results, results.length, searchTerms, highlightTerms);
|
||||
_displayNextItem(results, results.length, searchTerms);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -485,7 +424,6 @@ const Search = {
|
|||
descr,
|
||||
score,
|
||||
filenames[match[0]],
|
||||
SearchResultKind.object,
|
||||
]);
|
||||
};
|
||||
Object.keys(objects).forEach((prefix) =>
|
||||
|
|
@ -520,18 +458,14 @@ const Search = {
|
|||
// add support for partial matches
|
||||
if (word.length > 2) {
|
||||
const escapedWord = _escapeRegExp(word);
|
||||
if (!terms.hasOwnProperty(word)) {
|
||||
Object.keys(terms).forEach((term) => {
|
||||
if (term.match(escapedWord))
|
||||
arr.push({ files: terms[term], score: Scorer.partialTerm });
|
||||
});
|
||||
}
|
||||
if (!titleTerms.hasOwnProperty(word)) {
|
||||
Object.keys(titleTerms).forEach((term) => {
|
||||
if (term.match(escapedWord))
|
||||
arr.push({ files: titleTerms[term], score: Scorer.partialTitle });
|
||||
});
|
||||
}
|
||||
Object.keys(terms).forEach((term) => {
|
||||
if (term.match(escapedWord) && !terms[word])
|
||||
arr.push({ files: terms[term], score: Scorer.partialTerm });
|
||||
});
|
||||
Object.keys(titleTerms).forEach((term) => {
|
||||
if (term.match(escapedWord) && !titleTerms[word])
|
||||
arr.push({ files: titleTerms[word], score: Scorer.partialTitle });
|
||||
});
|
||||
}
|
||||
|
||||
// no match but word was a required one
|
||||
|
|
@ -554,8 +488,9 @@ const Search = {
|
|||
|
||||
// create the mapping
|
||||
files.forEach((file) => {
|
||||
if (!fileMap.has(file)) fileMap.set(file, [word]);
|
||||
else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word);
|
||||
if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1)
|
||||
fileMap.get(file).push(word);
|
||||
else fileMap.set(file, [word]);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -596,7 +531,6 @@ const Search = {
|
|||
null,
|
||||
score,
|
||||
filenames[file],
|
||||
SearchResultKind.text,
|
||||
]);
|
||||
}
|
||||
return results;
|
||||
|
|
@ -607,8 +541,8 @@ const Search = {
|
|||
* search summary for a given text. keywords is a list
|
||||
* of stemmed words.
|
||||
*/
|
||||
makeSearchSummary: (htmlText, keywords, anchor) => {
|
||||
const text = Search.htmlToText(htmlText, anchor);
|
||||
makeSearchSummary: (htmlText, keywords) => {
|
||||
const text = Search.htmlToText(htmlText);
|
||||
if (text === "") return null;
|
||||
|
||||
const textLower = text.toLowerCase();
|
||||
|
|
|
|||
|
|
@ -29,19 +29,14 @@ const _highlight = (node, addItems, text, className) => {
|
|||
}
|
||||
|
||||
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
||||
const rest = document.createTextNode(val.substr(pos + text.length));
|
||||
parent.insertBefore(
|
||||
span,
|
||||
parent.insertBefore(
|
||||
rest,
|
||||
document.createTextNode(val.substr(pos + text.length)),
|
||||
node.nextSibling
|
||||
)
|
||||
);
|
||||
node.nodeValue = val.substr(0, pos);
|
||||
/* There may be more occurrences of search term in this node. So call this
|
||||
* function recursively on the remaining fragment.
|
||||
*/
|
||||
_highlight(rest, addItems, text, className);
|
||||
|
||||
if (isInSVG) {
|
||||
const rect = document.createElementNS(
|
||||
|
|
@ -145,10 +140,5 @@ const SphinxHighlight = {
|
|||
},
|
||||
};
|
||||
|
||||
_ready(() => {
|
||||
/* Do not call highlightSearchWords() when we are on the search page.
|
||||
* It will highlight words from the *previous* search query.
|
||||
*/
|
||||
if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords();
|
||||
SphinxHighlight.initEscapeListener();
|
||||
});
|
||||
_ready(SphinxHighlight.highlightSearchWords);
|
||||
_ready(SphinxHighlight.initEscapeListener);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,168 @@
|
|||
/* 重置所有表格相关样式,确保我们的样式优先级 */
|
||||
.scrollable-table-container * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 表格容器样式 */
|
||||
.scrollable-table-container {
|
||||
height: 390px;
|
||||
overflow: scroll;
|
||||
margin-bottom: 1em;
|
||||
border: 1px solid #ddd;
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
isolation: isolate;
|
||||
/* 启用GPU加速 */
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
}
|
||||
|
||||
/* 确保表格占据全部宽度 */
|
||||
.scrollable-table-container table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
table-layout: fixed;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 表头单元格样式 - 提高z-index并确保背景色 */
|
||||
.scrollable-table-container thead th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
background-color: #f8f8f8 !important;
|
||||
border-bottom: 2px solid #ddd;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
padding: 8px 12px;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
/* 启用GPU加速 */
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
/* 移除will-change,它可能导致性能问题 */
|
||||
will-change: auto;
|
||||
}
|
||||
|
||||
/* 表格单元格样式 */
|
||||
.scrollable-table-container td {
|
||||
padding: 8px 12px;
|
||||
text-align: left;
|
||||
border: 1px solid #ddd;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 固定首列样式 - 提高z-index并确保背景色 */
|
||||
.scrollable-table-container td:first-child {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 150;
|
||||
background-color: #fff !important;
|
||||
border-right: 2px solid #ddd;
|
||||
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
|
||||
min-width: 150px;
|
||||
/* 启用GPU加速 */
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
/* 移除will-change,它可能导致性能问题 */
|
||||
will-change: auto;
|
||||
}
|
||||
|
||||
/* 固定表头的首列(左上角单元格) - 最高优先级 */
|
||||
.scrollable-table-container thead th:first-child {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 250;
|
||||
background-color: #f8f8f8 !important;
|
||||
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
|
||||
min-width: 150px;
|
||||
/* 启用GPU加速 */
|
||||
transform: translateZ(0);
|
||||
-webkit-transform: translateZ(0);
|
||||
/* 移除will-change,它可能导致性能问题 */
|
||||
will-change: auto;
|
||||
}
|
||||
|
||||
/* 使用!important确保固定元素的背景色不被覆盖 */
|
||||
.scrollable-table-container thead th {
|
||||
background-color: #f8f8f8 !important;
|
||||
}
|
||||
|
||||
.scrollable-table-container td:first-child {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.scrollable-table-container thead th:first-child {
|
||||
background-color: #f8f8f8 !important;
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media screen and (max-width: 768px) {
|
||||
.scrollable-table-container {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.scrollable-table-container td:first-child,
|
||||
.scrollable-table-container th:first-child {
|
||||
min-width: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 为表格内容区域添加轻微背景色,增强可读性 */
|
||||
.scrollable-table-container tbody tr:nth-child(even) {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.scrollable-table-container tbody tr:hover {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
/* 针对Chrome的优化 */
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
.scrollable-table-container {
|
||||
/* Chrome特定优化 */
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.scrollable-table-container thead th,
|
||||
.scrollable-table-container td:first-child,
|
||||
.scrollable-table-container thead th:first-child {
|
||||
/* Chrome特定优化 */
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
/* 强制滚动条样式 */
|
||||
.scrollable-table-container::-webkit-scrollbar {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.scrollable-table-container::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.scrollable-table-container::-webkit-scrollbar-thumb {
|
||||
background: #c1c1c1;
|
||||
border-radius: 6px;
|
||||
border: 2px solid #f1f1f1;
|
||||
}
|
||||
|
||||
.scrollable-table-container::-webkit-scrollbar-thumb:hover {
|
||||
background: #a8a8a8;
|
||||
}
|
||||
|
||||
/* 针对Firefox的滚动条样式 */
|
||||
.scrollable-table-container {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #c1c1c1 #f1f1f1;
|
||||
}
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// 等待页面完全加载和渲染
|
||||
setTimeout(initializeFixedTables, 500);
|
||||
});
|
||||
|
||||
// 初始化所有固定表格
|
||||
function initializeFixedTables() {
|
||||
// 查找所有需要固定效果的表格容器
|
||||
const tableContainers = document.querySelectorAll('.scrollable-table-container');
|
||||
|
||||
if (tableContainers.length === 0) {
|
||||
console.warn('未找到.scrollable-table-container元素');
|
||||
return;
|
||||
}
|
||||
|
||||
tableContainers.forEach((container, index) => {
|
||||
// 检查是否已初始化
|
||||
if (container.dataset.initialized === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
// 获取表格
|
||||
const table = container.querySelector('table');
|
||||
if (!table) {
|
||||
console.warn('容器中未找到表格元素', container);
|
||||
return;
|
||||
}
|
||||
|
||||
// 确保表格有正确的结构
|
||||
ensureTableStructure(table);
|
||||
|
||||
// 应用固定效果
|
||||
applyFixedEffects(container, table);
|
||||
|
||||
// 标记为已初始化
|
||||
container.dataset.initialized = 'true';
|
||||
console.log(`表格 ${index + 1} 初始化完成`);
|
||||
});
|
||||
}
|
||||
|
||||
// 确保表格有正确的结构
|
||||
function ensureTableStructure(table) {
|
||||
// 如果没有thead,尝试从第一行创建
|
||||
if (!table.tHead || table.tHead.rows.length === 0) {
|
||||
const firstRow = table.rows[0];
|
||||
if (firstRow) {
|
||||
const thead = document.createElement('thead');
|
||||
thead.appendChild(firstRow.cloneNode(true));
|
||||
table.insertBefore(thead, table.firstChild);
|
||||
firstRow.remove();
|
||||
}
|
||||
}
|
||||
|
||||
// 如果没有tbody,创建它
|
||||
if (!table.tBodies || table.tBodies.length === 0) {
|
||||
const tbody = document.createElement('tbody');
|
||||
while (table.rows.length > 1) { // 假设第一行是表头
|
||||
tbody.appendChild(table.rows[1]);
|
||||
}
|
||||
table.appendChild(tbody);
|
||||
}
|
||||
}
|
||||
|
||||
// 应用固定效果
|
||||
function applyFixedEffects(container, table) {
|
||||
// 设置表格和列的宽度
|
||||
setTableLayout(container, table);
|
||||
|
||||
// 添加滚动事件监听器,确保固定效果
|
||||
container.addEventListener('scroll', function() {
|
||||
// 这个事件监听器确保固定效果在滚动时保持
|
||||
// 实际上,CSS的sticky定位应该已经处理了这一点
|
||||
// 这里主要是为了确保在某些浏览器中触发重绘
|
||||
const thElements = table.querySelectorAll('thead th');
|
||||
thElements.forEach(th => {
|
||||
th.style.transform = `translateY(${container.scrollTop}px)`;
|
||||
});
|
||||
});
|
||||
|
||||
// 监听窗口大小变化,重新调整布局
|
||||
window.addEventListener('resize', function() {
|
||||
setTimeout(() => setTableLayout(container, table), 100);
|
||||
});
|
||||
}
|
||||
|
||||
// 设置表格布局
|
||||
function setTableLayout(container, table) {
|
||||
// 设置表格宽度
|
||||
table.style.width = '100%';
|
||||
|
||||
// 设置列宽
|
||||
const headerCells = table.tHead.rows[0].cells;
|
||||
const containerWidth = container.offsetWidth;
|
||||
|
||||
// 首列宽度
|
||||
if (headerCells.length > 0) {
|
||||
headerCells[0].style.minWidth = '270px';
|
||||
headerCells[0].style.width = '270px';
|
||||
}
|
||||
|
||||
// 其他列平均分配剩余宽度
|
||||
const remainingWidth = containerWidth - 270;
|
||||
const otherColumnsWidth = Math.max(80, remainingWidth / (headerCells.length - 1));
|
||||
|
||||
for (let i = 1; i < headerCells.length; i++) {
|
||||
headerCells[i].style.minWidth = `${otherColumnsWidth}px`;
|
||||
headerCells[i].style.width = `${otherColumnsWidth}px`;
|
||||
}
|
||||
|
||||
// 确保表体和表头列宽一致
|
||||
if (table.tBodies.length > 0 && table.tBodies[0].rows.length > 0) {
|
||||
const bodyCells = table.tBodies[0].rows[0].cells;
|
||||
for (let i = 0; i < bodyCells.length; i++) {
|
||||
if (i < headerCells.length) {
|
||||
bodyCells[i].style.width = headerCells[i].style.width;
|
||||
bodyCells[i].style.minWidth = headerCells[i].style.minWidth;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 如果页面是通过AJAX等方式动态加载的,可以使用这个函数重新初始化
|
||||
function reinitializeFixedTables() {
|
||||
document.querySelectorAll('.scrollable-table-container').forEach(container => {
|
||||
container.dataset.initialized = 'false';
|
||||
});
|
||||
initializeFixedTables();
|
||||
}
|
||||
|
||||
// 导出函数到全局作用域,以便在需要时手动调用
|
||||
window.reinitializeFixedTables = reinitializeFixedTables;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>转换模型 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -81,7 +83,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>转换模型<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>转换模型<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<p>1.xxx
|
||||
2.xxx
|
||||
3.xxx</p>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>定义模型 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -81,7 +83,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>定义模型<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>定义模型<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<p>1.xxx
|
||||
2.xxx
|
||||
3.xxx</p>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>应用开发 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -80,7 +82,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>应用开发<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>应用开发<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="createmodel.html">定义模型</a></li>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>模型部署 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -81,7 +83,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>模型部署<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>模型部署<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<p>1.xxx
|
||||
2.xxx
|
||||
3.xxx</p>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,18 +9,20 @@
|
|||
<title>Add — 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 data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../../_static/translations.js?v=beaddf03"></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="FFTWithSize" href="fft_with_size.html" />
|
||||
<link rel="next" title="Equal" href="equal.html" />
|
||||
<link rel="prev" title="DSP Library C API Reference" href="dsplib_index.html" />
|
||||
</head>
|
||||
|
||||
|
|
@ -50,7 +52,9 @@
|
|||
<li class="toctree-l2"><a class="reference internal" href="../supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="dsplib_index.html">DSP Library C API Reference</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Add</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="equal.html">Equal</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -85,11 +89,11 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="add">
|
||||
<h1>Add<a class="headerlink" href="#add" title="Link to this heading"></a></h1>
|
||||
<h1>Add<a class="headerlink" href="#add" title="此标题的永久链接"></a></h1>
|
||||
<p><strong>共享存储版本:</strong></p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.my_c_add_anycore">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">my_c_add_anycore</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param1</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param2</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.my_c_add_anycore" title="Link to this definition"></a><br /></dt>
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">my_c_add_anycore</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param1</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param2</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.my_c_add_anycore" title="永久链接至目标"></a><br /></dt>
|
||||
<dd><p>两个输入Tensor逐元素相加。</p>
|
||||
<dl class="simple">
|
||||
<dt>输入:</dt><dd><ul class="simple">
|
||||
|
|
@ -124,7 +128,7 @@
|
|||
<p><strong>私有存储版本:</strong></p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.my_c_add_1core">
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">my_c_add_1core</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param1</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param2</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.my_c_add_1core" title="Link to this definition"></a><br /></dt>
|
||||
<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">my_c_add_1core</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param1</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">param2</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.my_c_add_1core" title="永久链接至目标"></a><br /></dt>
|
||||
<dd><p>两个输入Tensor逐元素相加。</p>
|
||||
<dl class="simple">
|
||||
<dt>输入:</dt><dd><ul class="simple">
|
||||
|
|
@ -163,7 +167,7 @@
|
|||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="dsplib_index.html" class="btn btn-neutral float-left" title="DSP Library C API Reference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="fft_with_size.html" class="btn btn-neutral float-right" title="FFTWithSize" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
<a href="equal.html" class="btn btn-neutral float-right" title="Equal" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,15 +9,16 @@
|
|||
<title>DSP Library C API Reference — 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 data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../../_static/sphinx_highlight.js?v=4825356b"></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" />
|
||||
|
|
@ -51,7 +52,9 @@
|
|||
<li class="toctree-l2"><a class="reference internal" href="../supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">DSP Library C API Reference</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="add.html">Add</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="equal.html">Equal</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -85,11 +88,13 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="dsp-library-c-api-reference">
|
||||
<h1>DSP Library C API Reference<a class="headerlink" href="#dsp-library-c-api-reference" title="Link to this heading"></a></h1>
|
||||
<h1>DSP Library C API Reference<a class="headerlink" href="#dsp-library-c-api-reference" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="add.html">Add</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="equal.html">Equal</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,295 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<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>Equal — 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 data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../../_static/sphinx_highlight.js?v=4825356b"></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="FFTWithSize" href="fft_with_size.html" />
|
||||
<link rel="prev" title="Add" href="add.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 class="current">
|
||||
<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 current"><a class="reference internal" href="../index.html">算子库支持</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="../supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="dsplib_index.html">DSP Library C API Reference</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="add.html">Add</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Equal</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</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">Equal</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="../../_sources/functionlib/dsplib/equal.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="equal">
|
||||
<h1>Equal<a class="headerlink" href="#equal" title="此标题的永久链接"></a></h1>
|
||||
<p><strong>共享存储版本:</strong></p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i8_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i8_equal_s</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">int8_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">int8_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i8_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i16_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i16_equal_s</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">int16_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">int16_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i16_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i32_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i32_equal_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i32_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.hp_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">hp_equal_s</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">half</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">half</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.hp_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.fp_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">fp_equal_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.fp_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.dp_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">dp_equal_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.dp_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.c64_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">c64_equal_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.c64_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.c128_equal_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">c128_equal_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">core_mask</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.c128_equal_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd><p>逐元素计算两个输入是否相等</p>
|
||||
<div class="math notranslate nohighlight">
|
||||
\[\begin{split}output_i = \begin{cases}
|
||||
\text{True}, & \text{if } Input0_i = Input1_i \\
|
||||
\text{False}, & \text{if } Input0_i \neq Input1_i
|
||||
\end{cases}\end{split}\]</div>
|
||||
<dl class="simple">
|
||||
<dt>输入:</dt><dd><ul class="simple">
|
||||
<li><p><strong>Input0</strong> - 第一个输入数据地址。</p></li>
|
||||
<li><p><strong>Input1</strong> - 第二个输入数据地址。</p></li>
|
||||
<li><p><strong>length</strong> - 计算长度。</p></li>
|
||||
<li><p><strong>core_mask</strong> - 核掩码。</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>输出:</dt><dd><ul class="simple">
|
||||
<li><p><strong>output</strong> - 计算结果地址。</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 支持int8, int16, int32, fp32, fp64, cplx64, cplx128</p></li>
|
||||
<li><p>MT7004 支持fp16, fp32, int16, int32, cplx64</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p><strong>C调用示例:</strong></p>
|
||||
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="linenos"> 1</span><span class="c1">//FT78NE示例</span>
|
||||
<span class="linenos"> 2</span><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span>
|
||||
<span class="linenos"> 3</span>
|
||||
<span class="linenos"> 4</span><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">argv</span><span class="p">[])</span><span class="w"> </span><span class="p">{</span>
|
||||
<span class="linenos"> 5</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">input0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0xA0000000</span><span class="p">;</span><span class="w"> </span><span class="c1">//input在DDR空间</span>
|
||||
<span class="linenos"> 6</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">input1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0xB0000000</span><span class="p">;</span>
|
||||
<span class="linenos"> 7</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">bool</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0xC0000000</span><span class="p">;</span>
|
||||
<span class="linenos"> 8</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
|
||||
<span class="linenos"> 9</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">core_mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0xff</span><span class="p">;</span>
|
||||
<span class="hll"><span class="linenos">10</span><span class="w"> </span><span class="n">fp_equal_p</span><span class="p">(</span><span class="n">input0</span><span class="p">,</span><span class="w"> </span><span class="n">input1</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">length</span><span class="p">,</span><span class="w"> </span><span class="n">core_mask</span><span class="p">);</span>
|
||||
</span><span class="linenos">11</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
|
||||
<span class="linenos">12</span><span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<p><strong>私有存储版本:</strong></p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i8_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i8_equal_p</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">int8_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">int8_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i8_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i16_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i16_equal_p</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">int16_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">int16_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i16_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.i32_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">i32_equal_p</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">int32_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">int32_t</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.i32_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.hp_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">hp_equal_p</span></span></span><span class="sig-paren">(</span><span class="n"><span class="pre">half</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="n"><span class="pre">half</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.hp_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.fp_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">fp_equal_p</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.fp_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.dp_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">dp_equal_p</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.dp_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.c64_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">c64_equal_p</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.c64_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.c128_equal_p">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">c128_equal_p</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input0</span></span>, <span class="kt"><span class="pre">double</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">Input1</span></span>, <span class="kt"><span class="pre">bool</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">length</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.c128_equal_p" title="永久链接至目标"></a><br /></dt>
|
||||
<dd><p>逐元素计算两个输入是否相等</p>
|
||||
<div class="math notranslate nohighlight">
|
||||
\[\begin{split}output_i = \begin{cases}
|
||||
\text{True}, & \text{if } Input0_i = Input1_i \\
|
||||
\text{False}, & \text{if } Input0_i \neq Input1_i
|
||||
\end{cases}\end{split}\]</div>
|
||||
<dl class="simple">
|
||||
<dt>输入:</dt><dd><ul class="simple">
|
||||
<li><p><strong>Input0</strong> - 第一个输入数据地址。</p></li>
|
||||
<li><p><strong>Input1</strong> - 第二个输入数据地址。</p></li>
|
||||
<li><p><strong>length</strong> - 计算长度。</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>输出:</dt><dd><ul class="simple">
|
||||
<li><p><strong>output</strong> - 计算结果地址。</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 支持int8, int16, int32, fp32, fp64, cplx64, cplx128</p></li>
|
||||
<li><p>MT7004 支持fp16, fp32, int16, int32, cplx64</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p><strong>C调用示例:</strong></p>
|
||||
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="linenos"> 1</span><span class="c1">//FT78NE示例</span>
|
||||
<span class="linenos"> 2</span><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span>
|
||||
<span class="linenos"> 3</span>
|
||||
<span class="linenos"> 4</span><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">argv</span><span class="p">[])</span><span class="w"> </span><span class="p">{</span>
|
||||
<span class="linenos"> 5</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">input0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0x10000000</span><span class="p">;</span><span class="w"> </span><span class="c1">//input在L2空间</span>
|
||||
<span class="linenos"> 6</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">input1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0x10001000</span><span class="p">;</span>
|
||||
<span class="linenos"> 7</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">bool</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0xC0000000</span><span class="p">;</span>
|
||||
<span class="linenos"> 8</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
|
||||
<span class="hll"><span class="linenos"> 9</span><span class="w"> </span><span class="n">fp_equal_p</span><span class="p">(</span><span class="n">input0</span><span class="p">,</span><span class="w"> </span><span class="n">input1</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">length</span><span class="p">);</span>
|
||||
</span><span class="linenos">10</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
|
||||
<span class="linenos">11</span><span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="add.html" class="btn btn-neutral float-left" title="Add" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="fft_with_size.html" class="btn btn-neutral float-right" title="FFTWithSize" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© 版权所有 2025 - 2025, 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>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,20 +9,22 @@
|
|||
<title>FFTWithSize — 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 data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../../_static/sphinx_highlight.js?v=4825356b"></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="参考资料" href="../../refdoc/index.html" />
|
||||
<link rel="prev" title="Add" href="add.html" />
|
||||
<link rel="next" title="Log10" href="log10.html" />
|
||||
<link rel="prev" title="Equal" href="equal.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
|
|
@ -51,10 +53,12 @@
|
|||
<li class="toctree-l2"><a class="reference internal" href="../supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="dsplib_index.html">DSP Library C API Reference</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="add.html">Add</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="equal.html">Equal</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">FFTWithSize</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#mindspore.ops.FFTWithSize"><code class="docutils literal notranslate"><span class="pre">mindspore.ops.FFTWithSize</span></code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -89,10 +93,10 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="fftwithsize">
|
||||
<h1>FFTWithSize<a class="headerlink" href="#fftwithsize" title="Link to this heading"></a></h1>
|
||||
<h1>FFTWithSize<a class="headerlink" href="#fftwithsize" title="此标题的永久链接"></a></h1>
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="mindspore.ops.FFTWithSize">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">mindspore.ops.</span></span><span class="sig-name descname"><span class="pre">FFTWithSize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">signal_ndim</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">inverse</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">real</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">norm</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'backward'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">onesided</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">signal_sizes</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">()</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#mindspore.ops.FFTWithSize" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">mindspore.ops.</span></span><span class="sig-name descname"><span class="pre">FFTWithSize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">signal_ndim</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">inverse</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">real</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">norm</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'backward'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">onesided</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">True</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">signal_sizes</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">()</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#mindspore.ops.FFTWithSize" title="永久链接至目标"></a></dt>
|
||||
<dd><p>傅里叶变换,可以对参数进行调整,以实现FFT/IFFT/RFFT/IRFFT。</p>
|
||||
<p>对于FFT,它计算以下表达式:</p>
|
||||
<div class="math notranslate nohighlight">
|
||||
|
|
@ -138,9 +142,9 @@
|
|||
</li>
|
||||
<li><p><strong>norm</strong> (str,可选) - 表示该操作的规范化方式,可选值:[ <code class="docutils literal notranslate"><span class="pre">"backward"</span></code> , <code class="docutils literal notranslate"><span class="pre">"forward"</span></code> , <code class="docutils literal notranslate"><span class="pre">"ortho"</span></code> ]。默认值: <code class="docutils literal notranslate"><span class="pre">"backward"</span></code> 。</p>
|
||||
<ul>
|
||||
<li><p>"backward",正向变换不缩放,逆变换按 <span class="math notranslate nohighlight">\(1/n\)</span> 缩放,其中 <cite>n</cite> 表示输入 <cite>x</cite> 的元素数量。。</p></li>
|
||||
<li><p>"ortho",正向变换与逆变换均按 <span class="math notranslate nohighlight">\(1/\sqrt n\)</span> 缩放。</p></li>
|
||||
<li><p>"forward",正向变换按 <span class="math notranslate nohighlight">\(1/n\)</span> 缩放,逆变换不缩放。</p></li>
|
||||
<li><p>“backward”,正向变换不缩放,逆变换按 <span class="math notranslate nohighlight">\(1/n\)</span> 缩放,其中 <cite>n</cite> 表示输入 <cite>x</cite> 的元素数量。。</p></li>
|
||||
<li><p>“ortho”,正向变换与逆变换均按 <span class="math notranslate nohighlight">\(1/\sqrt n\)</span> 缩放。</p></li>
|
||||
<li><p>“forward”,正向变换按 <span class="math notranslate nohighlight">\(1/n\)</span> 缩放,逆变换不缩放。</p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><strong>onesided</strong> (bool,可选) - 控制输入是否减半以避免冗余。默认值: <code class="docutils literal notranslate"><span class="pre">True</span></code> 。</p></li>
|
||||
|
|
@ -165,7 +169,7 @@
|
|||
<li><p><strong>TypeError</strong> - 如果输入的类型不是Tensor。</p></li>
|
||||
<li><p><strong>ValueError</strong> - 如果输入 <cite>x</cite> 的维度小于 <cite>signal_ndim</cite> 。</p></li>
|
||||
<li><p><strong>ValueError</strong> - 如果 <cite>signal_ndim</cite> 大于3或小于1。</p></li>
|
||||
<li><p><strong>ValueError</strong> - 如果 <cite>norm</cite> 取值不是"backward"、"forward"或"ortho"。</p></li>
|
||||
<li><p><strong>ValueError</strong> - 如果 <cite>norm</cite> 取值不是”backward”、”forward”或”ortho”。</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
@ -177,8 +181,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="add.html" class="btn btn-neutral float-left" title="Add" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="../../refdoc/index.html" class="btn btn-neutral float-right" title="参考资料" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
<a href="equal.html" class="btn btn-neutral float-left" title="Equal" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="log10.html" class="btn btn-neutral float-right" title="Log10" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,170 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<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>Log10 — 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 data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../../_static/sphinx_highlight.js?v=4825356b"></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="参考资料" href="../../refdoc/index.html" />
|
||||
<link rel="prev" title="FFTWithSize" href="fft_with_size.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 class="current">
|
||||
<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 current"><a class="reference internal" href="../index.html">算子库支持</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="../supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="dsplib_index.html">DSP Library C API Reference</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="add.html">Add</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="equal.html">Equal</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</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">Log10</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="../../_sources/functionlib/dsplib/log10.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="log10">
|
||||
<h1>Log10<a class="headerlink" href="#log10" title="此标题的永久链接"></a></h1>
|
||||
<p><strong>共享存储版本:</strong></p>
|
||||
<dl class="c function">
|
||||
<dt class="sig sig-object c" id="c.fp_log10_s">
|
||||
<span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">fp_log10_s</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">input1</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">n</span></span>, <span class="kt"><span class="pre">float</span></span><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">output</span></span>, <span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="n"><span class="pre">mask</span></span><span class="sig-paren">)</span><span class="p"><span class="pre">;</span></span><a class="headerlink" href="#c.fp_log10_s" title="永久链接至目标"></a><br /></dt>
|
||||
<dd><p>快速计算以10为底的对数</p>
|
||||
<div class="math notranslate nohighlight">
|
||||
\[output_i = \log_{10}(input1_i)\]</div>
|
||||
<dl class="simple">
|
||||
<dt>输入:</dt><dd><ul class="simple">
|
||||
<li><p><strong>Input1</strong> - 输入数据地址。</p></li>
|
||||
<li><p><strong>n</strong> - 计算长度。</p></li>
|
||||
<li><p><strong>mask</strong> - 核掩码。</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>输出:</dt><dd><ul class="simple">
|
||||
<li><p><strong>output</strong> - 计算结果地址。</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>支持平台:</dt><dd><p><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>MT7004 支持fp32</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p><strong>C调用示例:</strong></p>
|
||||
<div class="highlight-c notranslate"><div class="highlight"><pre><span></span><span class="linenos"> 1</span><span class="c1">//MT7004示例</span>
|
||||
<span class="linenos"> 2</span><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span>
|
||||
<span class="linenos"> 3</span>
|
||||
<span class="linenos"> 4</span><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">argv</span><span class="p">[])</span><span class="w"> </span><span class="p">{</span>
|
||||
<span class="linenos"> 5</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">input1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0x100000000</span><span class="p">;</span><span class="w"> </span><span class="c1">//input在DDR空间</span>
|
||||
<span class="linenos"> 6</span><span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="mh">0x100001000</span><span class="p">;</span>
|
||||
<span class="linenos"> 7</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
|
||||
<span class="hll"><span class="linenos"> 8</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0xf</span><span class="p">;</span>
|
||||
</span><span class="linenos"> 9</span><span class="w"> </span><span class="n">fp_log10_s</span><span class="p">(</span><span class="n">input1</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">mask</span><span class="p">);</span>
|
||||
<span class="linenos">10</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
|
||||
<span class="linenos">11</span><span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="fft_with_size.html" class="btn btn-neutral float-left" title="FFTWithSize" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="../../refdoc/index.html" class="btn btn-neutral float-right" title="参考资料" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© 版权所有 2025 - 2025, 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>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,15 +9,16 @@
|
|||
<title>算子库支持 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></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" />
|
||||
|
|
@ -80,13 +81,15 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>算子库支持<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>算子库支持<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="supported_op.html">算子库支持情况</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="dsplib/dsplib_index.html">DSP Library C API Reference</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dsplib/add.html">Add</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dsplib/equal.html">Equal</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dsplib/fft_with_size.html">FFTWithSize</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="dsplib/log10.html">Log10</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,21 +1,23 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="./">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>索引 — 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 data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="_static/doctools.js?v=888ff710"></script>
|
||||
<script src="_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="_static/translations.js?v=beaddf03"></script>
|
||||
<script src="_static/table.js?v=99ed15ba"></script>
|
||||
<script src="_static/js/theme.js"></script>
|
||||
<link rel="index" title="索引" href="#" />
|
||||
<link rel="search" title="搜索" href="search.html" />
|
||||
|
|
@ -74,9 +76,88 @@
|
|||
<h1 id="index">索引</h1>
|
||||
|
||||
<div class="genindex-jumpbox">
|
||||
<a href="#M"><strong>M</strong></a>
|
||||
<a href="#C"><strong>C</strong></a>
|
||||
| <a href="#D"><strong>D</strong></a>
|
||||
| <a href="#F"><strong>F</strong></a>
|
||||
| <a href="#H"><strong>H</strong></a>
|
||||
| <a href="#I"><strong>I</strong></a>
|
||||
| <a href="#M"><strong>M</strong></a>
|
||||
|
||||
</div>
|
||||
<h2 id="C">C</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.c128_equal_p">c128_equal_p(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.c128_equal_s">c128_equal_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.c64_equal_p">c64_equal_p(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.c64_equal_s">c64_equal_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="D">D</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.dp_equal_p">dp_equal_p(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.dp_equal_s">dp_equal_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="F">F</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.fp_equal_p">fp_equal_p(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.fp_equal_s">fp_equal_s(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/log10.html#c.fp_log10_s">fp_log10_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="H">H</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.hp_equal_p">hp_equal_p(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.hp_equal_s">hp_equal_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="I">I</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i16_equal_p">i16_equal_p(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i16_equal_s">i16_equal_s(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i32_equal_p">i32_equal_p(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i32_equal_s">i32_equal_s(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i8_equal_p">i8_equal_p(C function)</a>
|
||||
</li>
|
||||
<li><a href="functionlib/dsplib/equal.html#c.i8_equal_s">i8_equal_s(C function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="M">M</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="./">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,15 +9,16 @@
|
|||
<title>MindSpore Signal+ 使用手册 — 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 data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="_static/doctools.js?v=888ff710"></script>
|
||||
<script src="_static/sphinx_highlight.js?v=4825356b"></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" />
|
||||
|
|
@ -75,7 +76,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="mindspore-signal">
|
||||
<h1>MindSpore Signal+ 使用手册<a class="headerlink" href="#mindspore-signal" title="Link to this heading"></a></h1>
|
||||
<h1>MindSpore Signal+ 使用手册<a class="headerlink" href="#mindspore-signal" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="quickstart/index.html">快速入门</a><ul>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>HelloDSP — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -98,16 +100,16 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="hellodsp">
|
||||
<h1>HelloDSP<a class="headerlink" href="#hellodsp" title="Link to this heading"></a></h1>
|
||||
<h1>HelloDSP<a class="headerlink" href="#hellodsp" title="此标题的永久链接"></a></h1>
|
||||
<p>HelloDSP 是一个简单的MindSpore Signal+平台开发示例,展示如何开发一个矩阵乘程序。主要流程分为两部分操作,分别为<a class="reference internal" href="#python"><span class="std std-ref">MindSpore Python端</span></a>和<a class="reference internal" href="#c"><span class="std std-ref">MindSpore Lite端</span></a>。MindSpore Python端在本地运行,用于生成模型;MindSpore Lite端在本地交叉编译,编译产物拷贝到MT7004板卡上运行。以下是HelloDSP矩阵乘例子介绍:</p>
|
||||
<section id="mindspore-python">
|
||||
<span id="python"></span><h2>1.MindSpore Python端<a class="headerlink" href="#mindspore-python" title="Link to this heading"></a></h2>
|
||||
<span id="python"></span><h2>1.MindSpore Python端<a class="headerlink" href="#mindspore-python" title="此标题的永久链接"></a></h2>
|
||||
<section id="id1">
|
||||
<h3>1.1 新建Python文件<a class="headerlink" href="#id1" title="Link to this heading"></a></h3>
|
||||
<h3>1.1 新建Python文件<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h3>
|
||||
<p>打开<code class="docutils literal notranslate"><span class="pre">YHFT-IDE</span></code>,新建<code class="docutils literal notranslate"><span class="pre">test_matmul.py</span></code>文件</p>
|
||||
</section>
|
||||
<section id="id2">
|
||||
<h3>1.2 编写Python代码<a class="headerlink" href="#id2" title="Link to this heading"></a></h3>
|
||||
<h3>1.2 编写Python代码<a class="headerlink" href="#id2" title="此标题的永久链接"></a></h3>
|
||||
<div class="highlight-py3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">mindspore</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">ms</span>
|
||||
<span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>
|
||||
<span class="kn">from</span><span class="w"> </span><span class="nn">mindspore</span><span class="w"> </span><span class="kn">import</span> <span class="n">nn</span><span class="p">,</span> <span class="n">ops</span>
|
||||
|
|
@ -152,21 +154,21 @@
|
|||
</ul>
|
||||
</section>
|
||||
<section id="id3">
|
||||
<h3>1.3 运行Python代码<a class="headerlink" href="#id3" title="Link to this heading"></a></h3>
|
||||
<h3>1.3 运行Python代码<a class="headerlink" href="#id3" title="此标题的永久链接"></a></h3>
|
||||
<p>在<code class="docutils literal notranslate"><span class="pre">YHFT-IDE</span></code>中运行<code class="docutils literal notranslate"><span class="pre">test_matmul.py</span></code>文件,会生成一个<code class="docutils literal notranslate"><span class="pre">matmul.mindir</span></code>模型文件,要在MindSpore Lite端运行则需要转成ms模型文件。mindir转ms的converter工具也已经集成到vscode,有两种方式使用converter工具:</p>
|
||||
<p>方式一:点击调试按钮;点击模型转换;选择要转的mindir模型文件即可。</p>
|
||||
<p>方式二:选择模型文件直接右键,找到模型转换选项,点击即可。</p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="mindspore-lite">
|
||||
<span id="c"></span><h2>MindSpore Lite端<a class="headerlink" href="#mindspore-lite" title="Link to this heading"></a></h2>
|
||||
<span id="c"></span><h2>MindSpore Lite端<a class="headerlink" href="#mindspore-lite" title="此标题的永久链接"></a></h2>
|
||||
<section id="id4">
|
||||
<h3>1. 新建工程<a class="headerlink" href="#id4" title="Link to this heading"></a></h3>
|
||||
<h3>1. 新建工程<a class="headerlink" href="#id4" title="此标题的永久链接"></a></h3>
|
||||
<p>打开<code class="docutils literal notranslate"><span class="pre">YHFT-IDE</span></code>,新建工程。输入工程名、路径,工程类型选择<code class="docutils literal notranslate"><span class="pre">Heterogeneous</span></code>,输入交叉编译工具路径,参照<a class="reference internal" href="installation.html#toolchain"><span class="std std-ref">配置交叉编译工具链</span></a>,然后点确定。会生成一个异构模板工程。</p>
|
||||
<img src="../_static/create_project.png" alt="create_project" width="auto"/>
|
||||
</section>
|
||||
<section id="id5">
|
||||
<h3>2. 工程目录结构<a class="headerlink" href="#id5" title="Link to this heading"></a></h3>
|
||||
<h3>2. 工程目录结构<a class="headerlink" href="#id5" title="此标题的永久链接"></a></h3>
|
||||
<p>生成的异构模板工程具有以下目录结构:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>test_matmul/
|
||||
├──<span class="w"> </span>model/
|
||||
|
|
@ -216,7 +218,7 @@
|
|||
</table>
|
||||
</section>
|
||||
<section id="id6">
|
||||
<h3>3. 更改输入数据<a class="headerlink" href="#id6" title="Link to this heading"></a></h3>
|
||||
<h3>3. 更改输入数据<a class="headerlink" href="#id6" title="此标题的永久链接"></a></h3>
|
||||
<p>通过修改 <code class="docutils literal notranslate"><span class="pre">data_handler.cc</span></code> 文件中的函数来调整输入输出数据:</p>
|
||||
<ul class="simple">
|
||||
<li><p><strong>修改输入数据</strong>:编辑 <code class="docutils literal notranslate"><span class="pre">GetInputData</span></code> 函数内容</p></li>
|
||||
|
|
@ -230,15 +232,15 @@
|
|||
<img src="../_static/init_input_data.png" alt="init_input_data" width="auto"/>
|
||||
</section>
|
||||
<section id="main-cc">
|
||||
<h3>4. main.cc 功能介绍<a class="headerlink" href="#main-cc" title="Link to this heading"></a></h3>
|
||||
<h3>4. main.cc 功能介绍<a class="headerlink" href="#main-cc" title="此标题的永久链接"></a></h3>
|
||||
<p><code class="docutils literal notranslate"><span class="pre">main</span></code> 函数主要包含 6 个核心步骤,实现完整的模型推理流程:</p>
|
||||
<section id="id7">
|
||||
<h4>4.1 读取模型文件<a class="headerlink" href="#id7" title="Link to this heading"></a></h4>
|
||||
<h4>4.1 读取模型文件<a class="headerlink" href="#id7" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 <code class="docutils literal notranslate"><span class="pre">ReadFile</span></code> 接口读取 <code class="docutils literal notranslate"><span class="pre">.ms</span></code> 模型文件,将数据保存到 <code class="docutils literal notranslate"><span class="pre">model_buf</span></code> 中。</p>
|
||||
<img src="../_static/read_model.png" alt="read_model" width="auto"/>
|
||||
</section>
|
||||
<section id="id8">
|
||||
<h4>4.2 设置运行后端<a class="headerlink" href="#id8" title="Link to this heading"></a></h4>
|
||||
<h4>4.2 设置运行后端<a class="headerlink" href="#id8" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 <code class="docutils literal notranslate"><span class="pre">context</span></code> 的 <code class="docutils literal notranslate"><span class="pre">MutableDeviceInfo</span></code> 添加一个或多个后端:</p>
|
||||
<ul class="simple">
|
||||
<li><p><strong>默认后端</strong>:<code class="docutils literal notranslate"><span class="pre">MT7004</span></code></p></li>
|
||||
|
|
@ -247,7 +249,7 @@
|
|||
<img src="../_static/set_device.png" alt="set_device" width="auto"/>
|
||||
</section>
|
||||
<section id="id9">
|
||||
<h4>4.3 编译模型图<a class="headerlink" href="#id9" title="Link to this heading"></a></h4>
|
||||
<h4>4.3 编译模型图<a class="headerlink" href="#id9" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 MindSpore 的 <code class="docutils literal notranslate"><span class="pre">Model</span></code> 类的 <code class="docutils literal notranslate"><span class="pre">Build</span></code> 方法编译模型图:</p>
|
||||
<p><strong>编译规则</strong>:按设置顺序查找后端算子,都没找到则编译失败</p>
|
||||
<p><strong>Build 方法参数:</strong></p>
|
||||
|
|
@ -280,12 +282,12 @@
|
|||
<img src="../_static/build_model.png" alt="build_model" width="auto"/>
|
||||
</section>
|
||||
<section id="id10">
|
||||
<h4>4.4 获取模型输入<a class="headerlink" href="#id10" title="Link to this heading"></a></h4>
|
||||
<h4>4.4 获取模型输入<a class="headerlink" href="#id10" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 <code class="docutils literal notranslate"><span class="pre">Model</span></code> 类的 <code class="docutils literal notranslate"><span class="pre">GetInputs</span></code> 方法获取所有模型输入的 <code class="docutils literal notranslate"><span class="pre">Tensor</span></code> 地址,通过修改 <code class="docutils literal notranslate"><span class="pre">GetInputData</span></code> 函数传递输入值。</p>
|
||||
<img src="../_static/get_input.png" alt="get_input" width="auto"/>
|
||||
</section>
|
||||
<section id="id11">
|
||||
<h4>4.5 执行模型推理<a class="headerlink" href="#id11" title="Link to this heading"></a></h4>
|
||||
<h4>4.5 执行模型推理<a class="headerlink" href="#id11" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 <code class="docutils literal notranslate"><span class="pre">Model</span></code> 类的 <code class="docutils literal notranslate"><span class="pre">Predict</span></code> 方法进行模型推理:</p>
|
||||
<p><strong>Predict 方法参数:</strong></p>
|
||||
<table class="docutils align-default">
|
||||
|
|
@ -309,13 +311,13 @@
|
|||
<img src="../_static/model_predict.png" alt="model_predict" width="auto"/>
|
||||
</section>
|
||||
<section id="id12">
|
||||
<h4>4.6 获取模型结果<a class="headerlink" href="#id12" title="Link to this heading"></a></h4>
|
||||
<h4>4.6 获取模型结果<a class="headerlink" href="#id12" title="此标题的永久链接"></a></h4>
|
||||
<p>通过 <code class="docutils literal notranslate"><span class="pre">Model</span></code> 类的 <code class="docutils literal notranslate"><span class="pre">GetOutputs</span></code> 方法获取所有模型输出,通过修改 <code class="docutils literal notranslate"><span class="pre">GetOutputData</span></code> 函数查看输出值。</p>
|
||||
<img src="../_static/get_output.png" alt="get_output" width="auto"/>
|
||||
</section>
|
||||
</section>
|
||||
<section id="id13">
|
||||
<h3>5. 编译工程<a class="headerlink" href="#id13" title="Link to this heading"></a></h3>
|
||||
<h3>5. 编译工程<a class="headerlink" href="#id13" title="此标题的永久链接"></a></h3>
|
||||
<p>提供多种编译方式,选择其中一种即可:</p>
|
||||
<p><strong>编译方式:</strong></p>
|
||||
<ul class="simple">
|
||||
|
|
@ -326,10 +328,10 @@
|
|||
<img src="../_static/build_project.png" alt="build_project" width="auto"/>
|
||||
</section>
|
||||
<section id="id14">
|
||||
<h3>6. 运行工程<a class="headerlink" href="#id14" title="Link to this heading"></a></h3>
|
||||
<h3>6. 运行工程<a class="headerlink" href="#id14" title="此标题的永久链接"></a></h3>
|
||||
<p>编译生成的可执行文件位于 <code class="docutils literal notranslate"><span class="pre">build</span></code> 目录下,默认文件名为 <code class="docutils literal notranslate"><span class="pre">main</span></code>。需要将可执行文件拷贝到 MT7004 板卡上运行。</p>
|
||||
<section id="mt7004">
|
||||
<h4>6.1 连接 MT7004 板卡<a class="headerlink" href="#mt7004" title="Link to this heading"></a></h4>
|
||||
<h4>6.1 连接 MT7004 板卡<a class="headerlink" href="#mt7004" title="此标题的永久链接"></a></h4>
|
||||
<p><strong>步骤 1:</strong> 打开远程窗口</p>
|
||||
<ul class="simple">
|
||||
<li><p>在 <code class="docutils literal notranslate"><span class="pre">YHFT-IDE</span></code> 左下角找到远程窗口功能</p></li>
|
||||
|
|
@ -354,14 +356,15 @@
|
|||
<img src="../_static/ssh_success.png" alt="ssh_success" width="auto"/>
|
||||
</section>
|
||||
<section id="id15">
|
||||
<h4>6.2 部署和运行程序<a class="headerlink" href="#id15" title="Link to this heading"></a></h4>
|
||||
<h4>6.2 部署和运行程序<a class="headerlink" href="#id15" title="此标题的永久链接"></a></h4>
|
||||
<p><strong>步骤 4:</strong> 部署程序文件</p>
|
||||
<ul class="simple">
|
||||
<li><p>在 MT7004 板卡上新建目录存放程序</p></li>
|
||||
<li><p>通过拖拽方式将可执行文件和模型文件传输到板卡</p></li>
|
||||
<li><p>使用 <code class="docutils literal notranslate"><span class="pre">chmod</span></code> 命令赋予可执行文件执行权限</p></li>
|
||||
</ul>
|
||||
<img src="../_static/model_run.png" alt="model_run" width="auto"/></section>
|
||||
<img src="../_static/model_run.png" alt="model_run" width="auto"/>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>快速入门 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -80,7 +82,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>快速入门<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>快速入门<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="installation.html">环境安装</a></li>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>环境安装 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -93,9 +95,9 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>环境安装<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>环境安装<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<section id="mindspore-radar">
|
||||
<h2>安装MindSpore Radar 与依赖软件<a class="headerlink" href="#mindspore-radar" title="Link to this heading"></a></h2>
|
||||
<h2>安装MindSpore Radar 与依赖软件<a class="headerlink" href="#mindspore-radar" title="此标题的永久链接"></a></h2>
|
||||
<table class="docutils align-default">
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>软件名称</p></th>
|
||||
|
|
@ -140,18 +142,18 @@
|
|||
</table>
|
||||
<p>上述所有软件包可以通过在线链接提取:<a class="reference external" href="https://">软件资源包</a></p>
|
||||
<section id="python">
|
||||
<span id="install-python"></span><h3>安装Python<a class="headerlink" href="#python" title="Link to this heading"></a></h3>
|
||||
<span id="install-python"></span><h3>安装Python<a class="headerlink" href="#python" title="此标题的永久链接"></a></h3>
|
||||
<p>本文提供两种不同的安装方式,自行选择合适的方式安装。</p>
|
||||
<section id="id2">
|
||||
<h4>1.安装包方式安装<a class="headerlink" href="#id2" title="Link to this heading"></a></h4>
|
||||
<h4>1.安装包方式安装<a class="headerlink" href="#id2" title="此标题的永久链接"></a></h4>
|
||||
<section id="id3">
|
||||
<h5>1.1 下载安装包<a class="headerlink" href="#id3" title="Link to this heading"></a></h5>
|
||||
<h5>1.1 下载安装包<a class="headerlink" href="#id3" title="此标题的永久链接"></a></h5>
|
||||
<p>根据机器的操作系统版本,在官网下载32位或64位windows版本的python3.8安装包:</p>
|
||||
<p>64位:<a class="reference external" href="https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe">https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe</a></p>
|
||||
<p>32位:<a class="reference external" href="https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe">https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe</a></p>
|
||||
</section>
|
||||
<section id="id4">
|
||||
<h5>1.2 开始安装<a class="headerlink" href="#id4" title="Link to this heading"></a></h5>
|
||||
<h5>1.2 开始安装<a class="headerlink" href="#id4" title="此标题的永久链接"></a></h5>
|
||||
<p>双击打开python安装包,选择Customize installation方式安装,并勾选<code class="docutils literal notranslate"><span class="pre">Add</span> <span class="pre">python3.8</span> <span class="pre">to</span> <span class="pre">PATH</span></code>。如下图:</p>
|
||||
<img src="../_static/python_install_step1.png" alt="python_install_step1" width="auto"/>
|
||||
<p>接着按默认选项点击下一步,可以根据需求选择安装路径,以及是否安装给所有用户。如下图:</p>
|
||||
|
|
@ -160,7 +162,7 @@
|
|||
<img src="../_static/python_install_success.png" alt="python_install_success" width="auto"/>
|
||||
</section>
|
||||
<section id="id5">
|
||||
<h5>1.3 验证安装<a class="headerlink" href="#id5" title="Link to this heading"></a></h5>
|
||||
<h5>1.3 验证安装<a class="headerlink" href="#id5" title="此标题的永久链接"></a></h5>
|
||||
<p>可以在cmd命令窗口通过以下命令查看Python版本。</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>--version
|
||||
</pre></div>
|
||||
|
|
@ -168,7 +170,7 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="conda">
|
||||
<h4>2.Conda方式安装<a class="headerlink" href="#conda" title="Link to this heading"></a></h4>
|
||||
<h4>2.Conda方式安装<a class="headerlink" href="#conda" title="此标题的永久链接"></a></h4>
|
||||
<p><a class="reference external" href="https://docs.conda.io/en/latest/">Conda</a>是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。</p>
|
||||
<ul class="simple">
|
||||
<li><p>确认安装Windows是x86架构64位操作系统。</p></li>
|
||||
|
|
@ -180,7 +182,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
<section id="id6">
|
||||
<h5>创建并进入Conda虚拟环境<a class="headerlink" href="#id6" title="Link to this heading"></a></h5>
|
||||
<h5>创建并进入Conda虚拟环境<a class="headerlink" href="#id6" title="此标题的永久链接"></a></h5>
|
||||
<p>在Windows上使用Anaconda,请通过<code class="docutils literal notranslate"><span class="pre">开始</span> <span class="pre">|</span> <span class="pre">Anaconda3</span> <span class="pre">|</span> <span class="pre">Anaconda</span> <span class="pre">Promt</span></code>打开Anaconda命令行。</p>
|
||||
<p>根据您希望使用的Python版本,创建对应的Conda虚拟环境,并进入虚拟环境。
|
||||
如果您希望使用Python3.8.10版本:</p>
|
||||
|
|
@ -192,7 +194,7 @@ conda<span class="w"> </span>activate<span class="w"> </span>mindspore_py38
|
|||
</section>
|
||||
</section>
|
||||
<section id="mindspore">
|
||||
<span id="install-mindspore"></span><h3>安装MindSpore<a class="headerlink" href="#mindspore" title="Link to this heading"></a></h3>
|
||||
<span id="install-mindspore"></span><h3>安装MindSpore<a class="headerlink" href="#mindspore" title="此标题的永久链接"></a></h3>
|
||||
<p>通过<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">mindspore-xxx-win_amd64.whl</span></code>命令安装MindSpore。验证是否成功安装,执行以下命令:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>-c<span class="w"> </span><span class="s2">"import mindspore;mindspore.set_device(device_target='CPU');mindspore.run_check()"</span>
|
||||
</pre></div>
|
||||
|
|
@ -209,7 +211,7 @@ The result of multiplication calculation is correct, MindSpore has been installe
|
|||
</div>
|
||||
</section>
|
||||
<section id="mindradar">
|
||||
<span id="install-mindradar"></span><h3>安装MindRadar<a class="headerlink" href="#mindradar" title="Link to this heading"></a></h3>
|
||||
<span id="install-mindradar"></span><h3>安装MindRadar<a class="headerlink" href="#mindradar" title="此标题的永久链接"></a></h3>
|
||||
<p>通过<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">mindradar-xxx-py3-none-any.whl</span></code>命令安装MindRadar。验证是否成功安装,执行以下命令:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>-c<span class="w"> </span><span class="s2">"import mindspore;import mindradar;from mindradar import ComplexAbs;"</span>
|
||||
</pre></div>
|
||||
|
|
@ -217,20 +219,20 @@ The result of multiplication calculation is correct, MindSpore has been installe
|
|||
<p>如果没有报错,说明MindRadar安装成功了。</p>
|
||||
</section>
|
||||
<section id="toolchain">
|
||||
<span id="id7"></span><h3>配置交叉编译工具链<a class="headerlink" href="#toolchain" title="Link to this heading"></a></h3>
|
||||
<span id="id7"></span><h3>配置交叉编译工具链<a class="headerlink" href="#toolchain" title="此标题的永久链接"></a></h3>
|
||||
<p>官网下载windows版本的交叉编译工具:
|
||||
<a class="reference external" href="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf.tar.xz">https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf.tar.xz</a></p>
|
||||
<p>将下载好的交叉编译工具包解压到一个全英文的文件夹即可,后续编译MindSpore Signal+ C++ 应用时需要填写交叉编译工具包的绝对路径。</p>
|
||||
</section>
|
||||
<section id="yhft-ide">
|
||||
<span id="install-yhft-ide"></span><h3>安装YHFT-IDE<a class="headerlink" href="#yhft-ide" title="Link to this heading"></a></h3>
|
||||
<span id="install-yhft-ide"></span><h3>安装YHFT-IDE<a class="headerlink" href="#yhft-ide" title="此标题的永久链接"></a></h3>
|
||||
<p>找到软件安装包,双击打开安装,同意条款;选择安装目录,点击下一步:</p>
|
||||
<img src="../_static/yhft-ide_install.png" alt="yhft-ide_install" width="auto"/>
|
||||
<p>然后一直按默认选项点下一步,直到点击安装。安装完成如下:</p>
|
||||
<img src="../_static/yhft-ide_install_success.png" alt="yhft-ide_install_success" width="auto"/>
|
||||
</section>
|
||||
<section id="cmake">
|
||||
<span id="install-cmake"></span><h3>安装CMake<a class="headerlink" href="#cmake" title="Link to this heading"></a></h3>
|
||||
<span id="install-cmake"></span><h3>安装CMake<a class="headerlink" href="#cmake" title="此标题的永久链接"></a></h3>
|
||||
<p>CMake官网选择合适版本下载CMake安装包:<a class="reference external" href="https://cmake.org/download/">https://cmake.org/download/</a></p>
|
||||
<p>双击打开安装包,会弹出如下界面,点击<code class="docutils literal notranslate"><span class="pre">Next</span></code>,进入下一步:</p>
|
||||
<img src="../_static/cmake_install_step1.png" alt="cmake_install_step1" width="auto"/>
|
||||
|
|
@ -243,7 +245,7 @@ The result of multiplication calculation is correct, MindSpore has been installe
|
|||
<img src="../_static/cmake_install_success.png" alt="cmake_install_step3" width="auto"/>
|
||||
</section>
|
||||
<section id="netron">
|
||||
<span id="install-netron"></span><h3>安装Netron<a class="headerlink" href="#netron" title="Link to this heading"></a></h3>
|
||||
<span id="install-netron"></span><h3>安装Netron<a class="headerlink" href="#netron" title="此标题的永久链接"></a></h3>
|
||||
<p>找到软件安装包,双击打开安装即可。</p>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,19 +9,21 @@
|
|||
<title>整体概览 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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="应用开发" href="../appdevelop/index.html" />
|
||||
<link rel="prev" title="第一个例子" href="helloworld.html" />
|
||||
<link rel="prev" title="HelloDSP" href="helloworld.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
|
|
@ -46,7 +48,7 @@
|
|||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">快速入门</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="installation.html">环境安装</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="helloworld.html">第一个例子</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="helloworld.html">HelloDSP</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">整体概览</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
@ -81,14 +83,14 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>整体概览<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>整体概览<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="helloworld.html" class="btn btn-neutral float-left" title="第一个例子" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="helloworld.html" class="btn btn-neutral float-left" title="HelloDSP" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="../appdevelop/index.html" class="btn btn-neutral float-right" title="应用开发" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,19 +9,21 @@
|
|||
<title>参考资料 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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="官方资料" href="mindspore.html" />
|
||||
<link rel="prev" title="FFTWithSize" href="../functionlib/dsplib/fft_with_size.html" />
|
||||
<link rel="prev" title="Log10" href="../functionlib/dsplib/log10.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
|
|
@ -79,7 +81,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>参考资料<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>参考资料<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="mindspore.html">官方资料</a></li>
|
||||
|
|
@ -92,7 +94,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||||
<a href="../functionlib/dsplib/fft_with_size.html" class="btn btn-neutral float-left" title="FFTWithSize" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="../functionlib/dsplib/log10.html" class="btn btn-neutral float-left" title="Log10" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||||
<a href="mindspore.html" class="btn btn-neutral float-right" title="官方资料" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>官方资料 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -80,7 +82,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="id1">
|
||||
<h1>官方资料<a class="headerlink" href="#id1" title="Link to this heading"></a></h1>
|
||||
<h1>官方资料<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||||
<ul class="simple">
|
||||
<li><p><a class="reference external" href="https://www.mindspore.cn/">MindSpore</a></p></li>
|
||||
<li><p><a class="reference external" href="https://www.mindspore.cn/lite/">Minsdpore Lite</a></p></li>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="../">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
|
|
@ -9,14 +9,16 @@
|
|||
<title>MindSpore Signal+ 调度方案 — 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 data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="../_static/translations.js?v=beaddf03"></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" />
|
||||
|
|
@ -79,7 +81,7 @@
|
|||
<div itemprop="articleBody">
|
||||
|
||||
<section id="mindspore-signal">
|
||||
<h1>MindSpore Signal+ 调度方案<a class="headerlink" href="#mindspore-signal" title="Link to this heading"></a></h1>
|
||||
<h1>MindSpore Signal+ 调度方案<a class="headerlink" href="#mindspore-signal" title="此标题的永久链接"></a></h1>
|
||||
<p>1.xxx</p>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,24 @@
|
|||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="zh-CN" data-content_root="./">
|
||||
<html class="writer-html5" lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>搜索 — 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 data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=595569a8"></script>
|
||||
<script src="_static/doctools.js?v=888ff710"></script>
|
||||
<script src="_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<script src="_static/translations.js?v=beaddf03"></script>
|
||||
<script src="_static/table.js?v=99ed15ba"></script>
|
||||
<script src="_static/js/theme.js"></script>
|
||||
<script src="_static/searchtools.js"></script>
|
||||
<script src="_static/language_data.js"></script>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue