|
2 | 2 |
|
3 | 3 | 本页面由 `excuter/op-mem-ompsimd/src/deepx/op/opfactory.hpp` 生成,请勿手动修改 |
4 | 4 |
|
5 | | -| Operation | Data Types | Math Formula | IR Instruction | |
6 | | -|-----------|------------|--------------|----------------| |
7 | | -| add_scalar | float32, float64 | T2 = T1 + 1.0 | add_scalar@float32 T1 1.0 -> T2 | |
8 | | -| rdiv_scalar | float32, float64 | T3 =1 / T2 | rdiv_scalar@float32 1 T2 -> T3 | |
9 | | -| constant | float32, float64 | T1 = full(shape, 0.0) | constant@float32 0.0 -> T1 | |
10 | | -| uniform | float32, float64 | uniform(-1.0, 1.0,T1) | uniform@float32 -1.0 1.0 -> T1 | |
11 | | -| mul_scalar | float32, float64 | T2 = T1 * 2.0 | mul_scalar@float32 T1 2.0 -> T2 | |
12 | | -| deltensor | any | del T1 | deltensor@any T1 -> | |
13 | | -| sub | float32, float64 | T3 = T1 - T2 | sub@int32 T1 T2 -> T3 | |
14 | | -| sum | float32, float64 | T2 = sum(T1, dims=[1,2]) | sum@float32 T1 1 2 -> T2 | |
15 | | -| argset | float32, float64, int32 | shape = [3, 4, 5] | argset@int32 3 4 5 -> shape | |
16 | | -| arange | float32, float64 | arange(start=0.0, step=1.0,T1) | arange@float32 0.0 1.0 -> T1 | |
17 | | -| add | float32, float64 | T3 = T1 + T2 | add@int32 T1 T2 -> T3 | |
18 | | -| copytensor | float32, float64, int16, int32, int64, int8 | T2 = T1.copy() | copytensor@float32 T1 -> T2 | |
19 | | -| min | float32, float64 | C = min(A,B) | min@float32 A B -> C | |
20 | | -| print | any | | print@any -> | |
21 | | -| newtensor | float32, float64, int16, int32, int64, int8 | T1 = zeros(shape) | newtensor@float32 shape -> T1 | |
22 | | -| div | float32, float64 | T3 = T1 / T2 | div@float32 T1 T2 -> T3 | |
23 | | -| div_scalar | float32, float64 | T2 = T1 / 2.0 | div_scalar@float32 T1 2.0 -> T2 | |
24 | | -| reshape | any | T2 = reshape(T1, [2,3,4]) | reshape@float32 T1 2 3 4 -> T2 | |
25 | | -| min_scalar | float32, float64 | B= min(A, 1.0) | min_scalar@float32 A 1.0 -> B | |
26 | | -| sqrt | float32, float64 | T2 = sqrt(T1) | sqrt@float32 T1 -> T2 | |
27 | | -| mul | float32, float64 | T3 = T1 * T2 | mul@float32 T1 T2 -> T3 | |
28 | | -| exp | float32, float64 | T2 = exp(T1) | exp@float32 T1 -> T2 | |
29 | | -| max_scalar | float32, float64 | T2 = max(T1, 0.0) | max_scalar@float32 T1 0.0 -> T2 | |
30 | | -| max | float32, float64 | T3 = max(T1,T2) | max@float32 T1 -> T2 | |
31 | | -| pow | float32, float64 | T3 = T1 ^ T2 | pow@float32 T1 T2 -> T3 | |
32 | | -| pow_scalar | float32, float64 | T2 = T1 ^ 2.0 | pow_scalar@float32 T1 2.0 -> T2 | |
33 | | -| matmul | float32, float64 | T3 = T1 @ T2 | matmul@float32 T1 T2 -> T3 | |
34 | | -| clonetensor | float32, float64, int16, int32, int64, int8 | T2 = T1.clone() | clonetensor@float32 T1 -> T2 | |
35 | | -| transpose | any | T2 = transpose(T1, dimorder=[1,0]) | transpose@float32 T1 1 0 -> T2 | |
36 | | -| expand | any | T2 = expand(T1, axis=[4,6,12]) | expand@float32 T1 4 6 12 -> T2 | |
37 | | -| concat | float32 | T3 = concat([T1, T2], axis=3) | concat@float32 T1 T2 3 -> T3 | |
| 5 | +| Operation | Author | Data Types | Math Formula | IR Instruction | |
| 6 | +|-----------|--------|------------|--------------|----------------| |
| 7 | +| divscalar | miaobyte | float32, float64 | T2 = T1 / 2.0 | divscalar@float32 T1 2.0 -> T2 | |
| 8 | +| addscalar | miaobyte | float32, float64 | T2 = T1 + 1.0 | addscalar@float32 T1 1.0 -> T2 | |
| 9 | +| uniform | | float32, float64 | uniform(-1.0, 1.0,T1) | uniform@float32 -1.0 1.0 -> T1 | |
| 10 | +| deltensor | | any | del T1 | deltensor@any T1 -> | |
| 11 | +| minscalar | | float32, float64 | B= min(A, 1.0) | minscalar@float32 A 1.0 -> B | |
| 12 | +| rdivscalar | miaobyte | float32, float64 | T3 =1 / T2 | rdivscalar@float32 1 T2 -> T3 | |
| 13 | +| constant | | float32, float64 | T1 = full(shape, 0.0) | constant@float32 0.0 -> T1 | |
| 14 | +| powscalar | miaobyte | float32, float64 | T2 = T1 ^ 2.0 | powscalar@float32 T1 2.0 -> T2 | |
| 15 | +| sub | cblas | float32, float64 | T3 = T1 - T2 | sub@int32 T1 T2 -> T3 | |
| 16 | +| sub | miaobyte | float32, float64 | T3 = T1 - T2 | sub@int32 T1 T2 -> T3 | |
| 17 | +| sum | | float32, float64 | T2 = sum(T1, dims=[1,2]) | sum@float32 T1 1 2 -> T2 | |
| 18 | +| argset | | float32, float64, int32 | shape = [3, 4, 5] | argset@int32 3 4 5 -> shape | |
| 19 | +| arange | | float32, float64 | arange(start=0.0, step=1.0,T1) | arange@float32 0.0 1.0 -> T1 | |
| 20 | +| transpose | | any | T2 = transpose(T1, dimorder=[1,0]) | transpose@float32 T1 1 0 -> T2 | |
| 21 | +| clonetensor | | float32, float64, int16, int32, int64, int8 | T2 = T1.clone() | clonetensor@float32 T1 -> T2 | |
| 22 | +| add | cblas | float32, float64 | T3 = T1 + T2 | add@int32 T1 T2 -> T3 | |
| 23 | +| add | miaobyte | float32, float64, int16, int32, int64, int8 | T3 = T1 + T2 | add@int32 T1 T2 -> T3 | |
| 24 | +| copytensor | | float32, float64, int16, int32, int64, int8 | T2 = T1.copy() | copytensor@float32 T1 -> T2 | |
| 25 | +| min | | float32, float64 | C = min(A,B) | min@float32 A B -> C | |
| 26 | +| print | | any | | print@any -> | |
| 27 | +| newtensor | | float32, float64, int16, int32, int64, int8 | T1 = zeros(shape) | newtensor@float32 shape -> T1 | |
| 28 | +| mulscalar | miaobyte | float32, float64 | T2 = T1 * 2.0 | mulscalar@float32 T1 2.0 -> T2 | |
| 29 | +| div | miaobyte | float32, float64 | T3 = T1 / T2 | div_miaobyte@float32 T1 T2 -> T3 | |
| 30 | +| sqrt | miaobyte | float32, float64 | T2 = sqrt(T1) | sqrt@float32 T1 -> T2 | |
| 31 | +| mul | miaobyte | float32, float64 | T3 = T1 * T2 | mul@float32 T1 T2 -> T3 | |
| 32 | +| exp | miaobyte | float32, float64 | T2 = exp(T1) | exp@float32 T1 -> T2 | |
| 33 | +| max | | float32, float64 | T3 = max(T1,T2) | max@float32 T1 -> T2 | |
| 34 | +| pow | miaobyte | float32, float64 | T3 = T1 ^ T2 | pow@float32 T1 T2 -> T3 | |
| 35 | +| maxscalar | | float32, float64 | T2 = max(T1, 0.0) | maxscalar@float32 T1 0.0 -> T2 | |
| 36 | +| matmul | | float32, float64 | T3 = T1 @ T2 | matmul@float32 T1 T2 -> T3 | |
| 37 | +| reshape | | any | T2 = reshape(T1, [2,3,4]) | reshape@float32 T1 2 3 4 -> T2 | |
| 38 | +| expand | | any | T2 = expand(T1, axis=[4,6,12]) | expand@float32 T1 4 6 12 -> T2 | |
| 39 | +| concat | | float32 | T3 = concat([T1, T2], axis=3) | concat@float32 T1 T2 3 -> T3 | |
0 commit comments