Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

CINN 算子单测补充-ISSUES #1378

Closed
thisjiang opened this issue Apr 27, 2023 · 41 comments
Closed

CINN 算子单测补充-ISSUES #1378

thisjiang opened this issue Apr 27, 2023 · 41 comments
Assignees

Comments

@thisjiang
Copy link
Collaborator

thisjiang commented Apr 27, 2023

任务描述

大家好,近期我们在从dtype覆盖,shape覆盖,属性覆盖三个方面梳理CINN中的算子单测,并在此过程中修复单测中发现的BUG。我们一共统计了135个CINN算子,发现其中所有的算子单测都或多或少的缺失了一些测试用例,导致没能测试到某个dtype、shape或者属性,甚至有部分算子没有对应的测试文件。为保证和保障CINN算子的正确性,我们希望能尽可能补充完全CINN的算子单测用例。

注意事项

  1. 认领规则:直接回复下 issue 下方
  2. PR 通过 CI 后,可以评论里或者 review request @thisjiang 或者 @FisherWY ,研发会进行审核
  3. 任务时间:PR 截止提交时间6月26日,截止合入时间6月30日
  4. 为减少CI耗时,请按shape + shape相关attrdtype + dtype相关attr其它attr将单测拆分为至少三个test class,不要全放在一个test class里
  5. 为减少CI耗时,请先在本地测试通过后再提commit

任务要求

我们希望大家能从如下角度完善CINN中的算子单测:

  1. 维度:覆盖1维到5维常规shape如[1024], [512, 256], [128, 64, 32], [16, 8, 4, 2], [16, 8, 4, 2, 1],以及特殊shape如[1],以及对该算子有特殊含义的shape如reduce算子的[1, 1, 1, 1, 1]
  2. 类型:至少要覆盖Paddle中对应算子支持的数据类型,如scale算子应至少支持float32,float64,int8,int16,int32,int64,uint8
  3. 属性:覆盖所有属性的所有合法取值,如bool类型属性True/False都应该测试到,及特殊取值,如scale算子的scale属性特殊值0和1
  4. 广播:覆盖相同维度、不同维度下的广播
  5. 耗时:单个算子单测不应超过200s,为减少CI流水线压力,希望能在尽可能保证覆盖率的情况下进行剪枝。

如若出现报错,请尽可能修复该问题。如若难度很大,请注释该配置,并在注释中加上TODO,同时在PR中加个comment,指明报错的配置和报错内容。

当前只需关注CUDA单测,跳过x86。

任务示例

如若之前从未尝试过编译和开发CINN,可通过如下脚本编译CINN:

git clone https://github.com/PaddlePaddle/CINN.git
cd CINN && mkdir build && cd build
cmake .. -DWITH_TESTING=ON -DWITH_CUDA=ON -DWITH_CUDNN=ON -DPY_VERSION=3.7
make -j10

CINN中算子单测位于python/tests/ops目录下,请仿照test_add_op_new.pytest_scale_op.py,利用TestCaseHelper来完善算子单测。

可以直接使用python命令执行单测脚本,只需将CINN的build/python目录加入到PYTHONPATH环境变量中即可:

export PYTHONPATH=$(pwd)/build/python:${PYTHONPATH}

可以通过--case=TEST_CLASS1.TEST_CASE1,TEST_CLASS2.TEST_CASE2这种方式来单独运行某个,或某几个case。

当测试通过后,可按照代码贡献流程来向CINN贡献代码,建议一个PR只提交一个算子的单测及其修复代码。提交commit前请一定要先执行pre-commit

示例PR:#1379

为方便review,PR描述请参考示例PR(可直接拷贝)。

## 描述

From https://github.com/PaddlePaddle/CINN/issues/1378

为Reduce类型算子增加新的测试用例

序号 | 算子名 | 单测文件 | 
-- | -- | -- | 
57 | reduce_sum | test_reduce_op.py | 
58 | reduce_prod | test_reduce_op.py | 
59 | reduce_max | test_reduce_op.py | 
60 | reduce_min | test_reduce_op.py |  
61 | reduce_all | test_reduce_op.py | 
62 | reduce_any | test_reduce_op.py | 

### 算子类型

- [ ] ElementWise:输入张量索引和输出张量索引之间存在一对一的对应关系
- [ ] Broadcast:输入张量索引和输出张量索引之间存在一对多的对应关系
- [ ] Injective:单射算子,可以将一个输出 axis 映射到一个输入 axis
- [x] Reduction:输入张量索引和输出张量索引之间存在多对一的对应关系
- [ ] OutFusible:复杂算子,仍然可以将一对一的算子融合到其输出中。
- [ ] kNonFusible:无法融合的算子

### OpMapper

- [ ] 该算子是否 OpMapper? 如果是,请贴出在 Paddle 中对应的 OpMaker 代码路径。(给出 Github 链接更好)

## Test Cases Checklist

### 张量维度

- [x] 1D 张量
- [x] 2D 张量
- [x] 3D 张量
- [x] 4D 张量

#### special shape

挑选 2D/3D/4D 张量中的一个,测试下面的特殊情况。

- [x] 其中一个维度为 1
- [x] 其中一个维度小于 1024
- [ ] 其中一个维度大于 1024
- [x] 向量的所有维度都是 1

### 张量数据类型

- [x] int32
- [x] int64
- [x] float16
- [x] float32
- [x] float64

### 广播

- [ ] 这个算子是否支持广播?
- [ ] 广播的测试样例

### 算子属性

算子属性的测试用例。

- [x] 属性:属性类型-可取值
    - [x] `op_type`
    - [x] `axis`
    - [x] `keepdim`
- [x] 使用 OpTestHelper 测试上述属性的笛卡尔积组合

### 备注

待完善算子单测列表 (整体进度:135/135)

按 merge 的时间顺序,排名不分先后: @FisherWY (39) @zzk0 (37) @enkilee (12) @zrr1999 (2) @Tomoko-hjf (8) @MayYouBeProsperous (19) @jjyaoao (2) @Liyulingyue (2) @ccsuzzh (1)
重复单测+无需添加(13)已认领(122)

序号 算子名 单测文件 认领人 PR
1 add ✅(2023/4/25) test_add_op.py @FisherWY #1364
2 batch_norm ✅(2023/6/25) test_batch_norm_op.py @Liyulingyue #1503
3 batch_norm_grad ✅(2023/6/25) test_batch_norm_op.py @Liyulingyue #1503
4 add test_binary_elemetwise_op.py 重复单测
5 subtract test_binary_elemetwise_op.py 重复单测
6 divide test_binary_elemetwise_op.py 重复单测
7 multiply test_binary_elemetwise_op.py 重复单测
8 floor_divide test_binary_elemetwise_op.py 重复单测
9 mod test_binary_elemetwise_op.py 重复单测
10 remainder ✅(2023/6/7) test_binary_elemetwise_op.py @FisherWY #1509
11 max test_binary_elemetwise_op.py 重复单测
12 min ✅(2023/6/25) test_binary_elemetwise_op.py @enkilee #1482
13 logical_and ✅(2023/6/26) test_binary_elemetwise_op.py @Tomoko-hjf #1396
14 logical_or ✅(2023/6/26) test_binary_elemetwise_op.py @Tomoko-hjf #1397
15 logical_xor ✅(2023/6/26) test_binary_elemetwise_op.py @Tomoko-hjf #1398
16 bitwise_and ✅(2023/5/16) test_binary_elemetwise_op.py @FisherWY #1404
17 bitwise_or ✅(2023/5/16) test_binary_elemetwise_op.py @FisherWY #1404
18 bitwise_xor ✅(2023/5/16) test_binary_elemetwise_op.py @FisherWY #1404
19 equal ✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
20 not_equal ✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
21 greater_than✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
22 less_than ✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
23 greater_equal ✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
24 less_equal ✅(2023/6/1) test_binary_elemetwise_op.py @zzk0 #1491
25 atan2 ✅(2023/6/1) test_binary_elemetwise_op.py @FisherWY #1484
26 broadcast_to ✅(2023/5/25) test_broadcast_to_op.py @enkilee #1380
27 cast✅(2023/5/6) test_cast_op.py @enkilee #1381
28 cbrt ✅(2023/6/8) test_cbrt_op.py @zzk0 #1495
29 ceil ✅(2023/6/8) test_ceil_op.py @zzk0 #1495
30 cholesky ✅(2023/6/8) test_cholesky_op.py @zzk0 #1495
31 clz ✅(2023/6/5) test_clz_op.py @zzk0 #1498
32 concat ✅(2023/6/8) test_concat_op.py @zzk0 #1495
33 constant ✅(2023/6/8) test_constant_op.py @zzk0 #1495
34 conv2d ✅(2023/4/26) test_conv2d_op.py @FisherWY #1462
35 divide ✅ (2023/5/6) test_devide_op.py @enkilee #1383
36 expand_dims✅(2023/5/11) test_expand_dims.py @enkilee #1384
37 fill_constant ✅(2023/6/8) test_fill_constant_op.py @zzk0 #1495
38 floor_divide ✅(2023/5/6) test_floor_divide_op.py @enkilee #1387
39 gather_nd ✅(2023/5/12) test_gather_nd_op.py @zrr1999 #1389
40 gather ✅(2023/6/1) test_gather_op.py @zrr1999 #1399
41 gaussian_random ✅(2023/6/7) test_gaussian_random_op.py @FisherWY #1509
42 gelu ✅(2023/5/26) test_gelu_op.py @jjyaoao #1468
43 isclose ✅(2023/6/12) test_isclose_op.py @FisherWY #1513
44 logical_right_shift ✅(2023/6/12) test_logical_right_shift_op.py @FisherWY #1513
45 lookup_table ✅(2023/6/12) test_lookup_table_op.py @FisherWY #1513
46 matmul ✅ (2023/5/15) test_matmul_op.py @FisherWY #1421
47 max ✅(2023/6/25) test_max_op.py @enkilee #1482
48 mod ✅(2023/6/25) test_mod_op.py @enkilee #1482
49 mul ✅(2023/7/5) test_mul_op.py @FisherWY PaddlePaddle/Paddle#55135
50 multiply ✅(2023/6/25) test_multiply_op.py @enkilee #1482
51 norm test_norm_op.py 无需添加
52 one_hot ✅(2023/6/19) test_one_hot_op.py @enkilee #1501
53 pool2d ✅(2023/6/5) test_pool2d_op.py @FisherWY #1471
54 popc ✅(2023/6/5) test_popc_op.py @zzk0 #1498
55 pow ✅(2023/6/12) test_pow_op.py @FisherWY #1513
56 reciprocal ✅(2023/5/25) test_reciprocal_op.py @jjyaoao #1467
57 reduce_sum ✅(2023/5/9) test_reduce_op.py @FisherWY #1379
58 reduce_prod ✅(2023/5/9) test_reduce_op.py @FisherWY #1379
59 reduce_max ✅ (2023/5/9) test_reduce_op.py @FisherWY #1379
60 reduce_min ✅ (2023/5/9) test_reduce_op.py @FisherWY #1379
61 reduce_all ✅(2023/5/9) test_reduce_op.py @FisherWY #1379
62 reduce_any ✅(2023/5/9) test_reduce_op.py @FisherWY #1379
63 relu ✅(2023/6/1) test_relu_op.py @zzk0 #1488
64 reshape ✅(2023/6/1) test_reshape_op.py @zzk0 #1488
65 scatter_add ✅(2023/6/5) test_scatter_add.py @zzk0 #1500
66 scatter_assign ✅(2023/5/6) test_scatter_assign_op.py @zzk0 #1390
67 select ✅(2023/5/9) test_select_op.py @zzk0 #1401
68 sigmoid ✅ (2023/5/9) test_sigmoid_op.py @zzk0 #1401
69 sign ✅(2023/5/9) test_sign_op.py @zzk0 #1401
70 slice_assign ✅ (2023/5/9) test_slice_assign_op.py @zzk0 #1401
71 slice ✅ (2023/5/9) test_slice_op.py @zzk0 #1401
72 sort ✅ (2023/5/24) test_sort_op.py @zzk0 #1411
73 split ✅ (2023/5/24) test_split_op.py @zzk0 #1453
74 squeeze ✅ (2023/5/25) test_squeeze_op.py @zzk0 #1457
75 subtract ✅ (2023/5/25) test_subtract_op.py @zzk0 #1457
76 sum ✅ (2023/5/25) test_sum_op.py @zzk0 #1457
77 top_k ✅(2023/6/1) test_top_k_op.py @zzk0 #1472
78 transpose ✅(2023/6/1) test_transpose_op.py @zzk0 #1472
79 triangular_solve ✅(2023/6/1) test_triangular_solve_op.py @zzk0 #1472
80 sqrt ✅ (2023/5/25) test_unary_elementwise_op.py @MayYouBeProsperous #1448
81 relu test_unary_elementwise_op.py 重复单测
82 sigmoid test_unary_elementwise_op.py 重复单测
83 identity ✅ (2023/5/25) test_unary_elementwise_op.py @MayYouBeProsperous #1473
84 exp ✅ (2023/5/25) test_unary_elementwise_op.py @MayYouBeProsperous #1460
85 erf ✅(2023/6/1) test_unary_elementwise_op.py @MayYouBeProsperous #1477
86 rsqrt ✅(2023/6/1) test_unary_elementwise_op.py @MayYouBeProsperous #1479
87 log ✅(2023/6/9) test_unary_elementwise_op.py @FisherWY #1515
88 log2 ✅(2023/6/9) test_unary_elementwise_op.py @FisherWY #1515
89 log10 ✅(2023/6/9) test_unary_elementwise_op.py @FisherWY #1515
90 floor ✅(2023/6/7) test_unary_elementwise_op.py @MayYouBeProsperous #1511
91 ceil test_unary_elementwise_op.py 重复单测
92 round ✅(2023/6/9) test_unary_elementwise_op.py @FisherWY #1515
93 trunc ✅(2023/6/7) test_unary_elementwise_op.py @MayYouBeProsperous #1506
94 sin ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
95 cos ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
96 tan ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
97 sinh ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
98 cosh ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
99 tanh ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
100 asin ✅(2023/5/22) test_unary_elementwise_op.py @MayYouBeProsperous #1426
101 acos ✅(2023/5/18) test_unary_elementwise_op.py @Tomoko-hjf #1430
102 atan ✅ (2023/5/25) test_unary_elementwise_op.py @Tomoko-hjf #1452
103 asinh ✅ (2023/5/25) test_unary_elementwise_op.py @Tomoko-hjf #1452
104 acosh ✅ (2023/6/26) test_unary_elementwise_op.py @Tomoko-hjf #1521
105 atanh ✅ (2023/5/25) test_unary_elementwise_op.py @Tomoko-hjf #1452
106 logical_not ✅ (2023/6/26) test_unary_elementwise_op.py @ccsuzzh #1534
107 bitwise_not ✅(2023/5/16) test_unary_elementwise_op.py @FisherWY #1404
108 sign test_unary_elementwise_op.py 重复单测
109 abs ✅(2023/6/5) test_unary_elementwise_op.py @MayYouBeProsperous #1492
110 is_nan/isnan ✅(2023/6/5) test_unary_elementwise_op.py @MayYouBeProsperous #1483
111 is_finite/isfinite✅(2023/6/5) test_unary_elementwise_op.py @MayYouBeProsperous #1483
112 is_inf/isinf ✅(2023/6/5) test_unary_elementwise_op.py @MayYouBeProsperous #1483
113 negative ✅(2023/6/6) test_unary_elementwise_op.py @MayYouBeProsperous #1496
114 uniform_random ✅(2023/6/7) test_uniform_random_op.py @FisherWY #1509
116 relu6✅(2023/4/25) test_relu6_op.py @FisherWY #1364
118 left_shift ✅(2023/4/25) test_left_shift_op.py @FisherWY #1364
119 right_shift ✅(2023/4/25) test_right_shift_op.py @FisherWY #1364
120 scale ✅(2023/4/25) test_scale_op.py @FisherWY #1364
121 dropout_infer ✅(2023/4/25) test_dropout_infer_op.py @FisherWY #1364
122 clip 缺失 无需添加
123 scatter ✅(2023/6/5) 缺失 @zzk0 #1500
124 scatter_nd ✅(2023/6/5) 缺失 @zzk0 #1500
125 argsort ✅(2023/7/4) 缺失 @FisherWY PaddlePaddle/Paddle#54939
126 argmax ✅(2023/7/4) 缺失 @FisherWY PaddlePaddle/Paddle#54939
127 argmin ✅(2023/7/4) 缺失 @FisherWY PaddlePaddle/Paddle#54939
128 depthwise_conv2d ✅(2023/6/9) 缺失 @FisherWY #1515
129 pool2d_grad ✅(2023/6/5) 缺失 @FisherWY #1471
130 repeat ✅(2023/6/12) 缺失 @zzk0 #1514
131 softmax ✅(2023/4/26) 缺失 @FisherWY #1462
132 arange ✅(2023/6/12) 缺失 @zzk0 #1514
133 reverse ✅(2023/6/12) 缺失 @zzk0 #1514
134 elementwise_add_grad ✅(2023/4/25) 缺失 @FisherWY #1364
135 flip ✅(2023/6/12) 缺失 @zzk0 #1514
@luotao1 luotao1 changed the title 算子单测补充-ISSUES CINN 算子单测补充-ISSUES Apr 27, 2023
@Liyulingyue
Copy link
Contributor

认领:2 3

@ccsuzzh
Copy link
Contributor

ccsuzzh commented Apr 27, 2023

认领:106、107

@enkilee
Copy link
Contributor

enkilee commented Apr 27, 2023

序号 算子名 单测文件 认领人 PR
26 broadcast_to test_broadcast_to_op.py @enkilee  #1380
27 cast test_cast_op.py  @enkilee #1381


@Skylark-hjyp
Copy link
Contributor

序号 算子名 单测文件 认领人 PR
4 add test_binary_elementwise_op.py @Tomoko-hjf PR

@enkilee
Copy link
Contributor

enkilee commented May 2, 2023

序号 算子名 单测文件 认领人 PR
35 divide test_divide_op.py @enkilee   #1383
36 expand_dims test_expand_dims.py  @enkilee  #1384


@enkilee enkilee mentioned this issue May 4, 2023
24 tasks
@zzk0
Copy link
Contributor

zzk0 commented May 4, 2023

认领 scatter 相关的算子:65 66 123 124

序号 算子名 单测文件
65 scatter_add test_scatter_add.py
66 scatter_assign test_scatter_assign_op.py
123 scatter 移除算子
124 scatter_nd 移除算子

@enkilee enkilee mentioned this issue May 4, 2023
25 tasks
@ShiYue-oo
Copy link

认领 87, 88,89

@enkilee
Copy link
Contributor

enkilee commented May 5, 2023

序号 算子名 单测文件 认领人 PR
38 floor_divide test_floor_divide_op.py @enkilee #1387

@zrr1999
Copy link
Member

zrr1999 commented May 5, 2023

认领 39,40

@zrr1999 zrr1999 mentioned this issue May 5, 2023
10 tasks
@zzk0 zzk0 mentioned this issue May 6, 2023
22 tasks
@zzk0
Copy link
Contributor

zzk0 commented May 6, 2023

为了避免 CI 的压力,开发多几个算子单测再合并提交 PR。下面的状态为 Pre-PR 表示已经开发完毕,但是还没有提交 PR。

合并提交PR:#1401

序号 算子名 单测文件 状态 PR
67 select test_select_op.py merged #1401
68 sigmoid test_sigmoid_op.py merged https://github.com/PaddlePaddle/CINN/pull/1401 
69 sign test_sign_op.py merged https://github.com/PaddlePaddle/CINN/pull/1401 
70 slice_assign test_slice_assign_op.py merged  #1401
71 slice test_slice_op.py merged #1401

@Skylark-hjyp
Copy link
Contributor

认领 13, 14, 15

@zrr1999 zrr1999 mentioned this issue May 6, 2023
10 tasks
@zrr1999
Copy link
Member

zrr1999 commented May 6, 2023

序号 算子名 单测文件 认领人 PR
39 gather_nd test_gather_nd_op.py zrr1999 #1389
40 gather test_gather_op.py zrr1999 #1399

@zrr1999
Copy link
Member

zrr1999 commented May 6, 2023

认领 126,127

@zzk0
Copy link
Contributor

zzk0 commented May 9, 2023

认领 72, 73, 74, 75, 76,为了避免 CI 的测试压力,开发多个单元测试再合并提交一个 PR。对于部分存在问题的算子,需要进行修复,单独提交 PR。

序号 算子 单测文件 状态 PR
72 sort test_sort_op.py Ready for Review    #1411
73 split test_split_op.py Ready for Review    #1453
74 squeeze test_squeeze_op.py  Ready for Review   #1457
75 subtract test_subtract_op.py  Ready for Review  #1457
76 sum test_sum_op.py Ready for Review #1457

@FisherWY
Copy link
Contributor

FisherWY commented May 9, 2023

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
16 bitwise_and test_bitwise_op.py FisherWY #1404
17 bitwise_or test_bitwise_op.py FisherWY #1404
18 bitwise_xor test_bitwise_op.py FisherWY #1404
107 bitwise_not test_bitwise_op.py FisherWY #1404

@FisherWY
Copy link
Contributor

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
46 matmul test_matmul_op.py FisherWY #1421

@MayYouBeProsperous
Copy link
Contributor

MayYouBeProsperous commented May 15, 2023

序号 算子 单测文件 认领人 PR
94 sin test_sin_op.py MayYouBeProsperous #1426
95 cos test_cos_op.py MayYouBeProsperous #1426
96 tan test_tan_op.py MayYouBeProsperous #1426
97 sinh test_sinh_op.py MayYouBeProsperous #1426
98 cosh test_cosh_op.py MayYouBeProsperous #1426
99 tanh test_tanh_op.py MayYouBeProsperous #1426
100 asin test_asin_op.py MayYouBeProsperous #1426

@FisherWY
Copy link
Contributor

FisherWY commented May 29, 2023

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
25 atan2 test_atan2_op.py FisherWY #1484

@zzk0
Copy link
Contributor

zzk0 commented May 30, 2023

认领以下算子:

序号 算子 单测文件
63 relu test_relu_op.py
64 reshape test_reshape_op.py

@zzk0
Copy link
Contributor

zzk0 commented May 31, 2023

认领以下算子:

序号 算子 单测文件
19 equal test_binary_elemetwise_op.py
20 not_equal test_binary_elemetwise_op.py
21 greater_than test_binary_elemetwise_op.py
22 less_than test_binary_elemetwise_op.py
23 greater_equal test_binary_elemetwise_op.py
24 less_equal test_binary_elemetwise_op.py

@zzk0
Copy link
Contributor

zzk0 commented Jun 1, 2023

认领以下算子:

序号 算子 单测文件
28 cbrt test_cbrt_op.py
29 ceil test_ceil_op.py
30 cholesky test_cholesky_op.py
32 concat test_concat_op.py
33 constant test_constant_op.py
37 fill_constant test_fill_constant_op.py

@zzk0
Copy link
Contributor

zzk0 commented Jun 2, 2023

认领以下算子:

序号 算子 单测文件
31 clz test_clz_op.py
54 popc test_popc_op.py

@zzk0

This comment was marked as duplicate.

@zzk0
Copy link
Contributor

zzk0 commented Jun 5, 2023

认领一下算子:

序号 算子 单测文件
130 repeat 缺失
132 arange 缺失
133 reverse 缺失
134 elementwise_add_grad 缺失
135 flip 缺失

@MayYouBeProsperous
Copy link
Contributor

序号 算子 单测文件 认领人 PR
113 negative test_unary_elementwise_op.py MayYouBeProsperous    #1496

@FisherWY
Copy link
Contributor

FisherWY commented Jun 6, 2023

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
10 remainder test_remainder_op.py FisherWY #1509
41 gaussian_random test_gaussian_random_op.py FisherWY #1509
114 uniform_random test_uniform_random_op.py FisherWY #1509

@FisherWY
Copy link
Contributor

FisherWY commented Jun 6, 2023

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
43 isclose test_isclose_op.py FisherWY #1513
44 logical_right_shift test_ logical_right_shift_op.py FisherWY #1513
45 lookup_table test_ lookup_table_op.py FisherWY #1513
55 pow test_pow_op.py FisherWY #1513

@MayYouBeProsperous
Copy link
Contributor

序号 算子 单测文件 认领人 PR
90 floor test_unary_elementwise_op.py MayYouBeProsperous   #1511
113 negative test_unary_elementwise_op.py MayYouBeProsperous    #1496

@FisherWY
Copy link
Contributor

FisherWY commented Jun 7, 2023

认领以下算子的单测:

序号 算子 单测文件 认领人 PR
87 log test_log_op.py FisherWY #1515
88 log2 test_log_op.py FisherWY #1515
89 log10 test_log_op.py FisherWY #1515
92 round test_round_op.py FisherWY #1515
128 depthwise_conv2d test_ depthwise_conv2d_op.py FisherWY #1515

@luotao1
Copy link
Collaborator

luotao1 commented Jul 3, 2023

CINN 算子单测补充基本都完成,感谢参与的小伙伴们!

按 merge 的时间顺序,排名不分先后: @FisherWY (35) @zzk0 (37) @enkilee (12) @zrr1999 (2) @Tomoko-hjf (8) @MayYouBeProsperous (19) @jjyaoao (2) @Liyulingyue (2) @ccsuzzh (1)

欢迎继续参与快乐开源的其他任务

@luotao1 luotao1 closed this as completed Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests