liu xuan
liu xuan
## test_activation.py性能测试效果图   
## test_abs.py性能测试效果图 
## 更新 gen_ops_process.py 描述:根据重构后的rst文件特性更新接口搜索脚本gen_ops_process.py (注:附带修复部分不规范的rst文档) ## 生成的md文件预览的表头表尾图下两图所示  
| 代码 | 执行人 | 是否需要增加profile /是否存在异常 | pr | | -- | -- | -- | -- | | test_abs.py | 刘轩 | 是 | https://github.com/Oneflow-Inc/oneflow/pull/8889 | | test_activation.py...
> 代码 执行人 是否需要增加profile pr > test_abs.py 刘轩 > test_activation.py 刘轩 > test_adaptive.py 刘轩 > test_adaptive_pool.py 刘轩 > test_addcdiv.py 刘轩 > test_addcmul.py 刘轩 > test_addmm.py 刘轩 > test_affine_grid.py 刘轩 >...
## 问题反馈 问题描述:对于test_abs.py文件中的`flow.abs( )`进行测试时,出现报错,如下所示,无法输出`torch.abs(torch.ones(16, 128, 28, 28))`操作的结果。 ```python (base) root@training-webide-b81f61-b81f61-webide-master-0:/workspace/oneflow/python/oneflow/test/modules# python3 -m oneflow.autoprof test_abs.py loaded library: /usr/lib/x86_64-linux-gnu/libibverbs.so.1 loaded library: /usr/lib/x86_64-linux-gnu/libibverbs.so.1 STAGE:2022-08-10 15:01:19 89274:89274 ActivityProfilerController.cpp:294] Completed Stage: Warm Up STAGE:2022-08-10 15:01:19...
## 在测试logsigmoid、selu 、sigmoid 时出现如下AssertionError ```python ====================================================================== FAIL: profile_logsigmoid (test_activation.TestLogSigmoidModule) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/miniconda3/lib/python3.7/site-packages/oneflow/test_utils/automated_test_util/profiler.py", line 253, in new_f res = f(*args, **kwargs) File "/workspace/oneflow/python/oneflow/test/modules/test_activation.py", line 500, in...
##oneflow.argmin接口assert error 问题描述:依照[torch文档](https://pytorch.org/docs/1.10/generated/torch.argmin.html?highlight=argmin#torch.argmin)进行测试,assert error 测试代码: ```python a=torch.ones(4,4) torch.argmin(a) ``` 报错: ```python (base) root@training-webide-b81f61-b81f61-webide-master-0:/workspace/oneflow/python/oneflow/test/modules# python3 -m oneflow.autoprof test_argmin.TestArgmin.profile_argmin loaded library: /usr/lib/x86_64-linux-gnu/libibverbs.so.1 loaded library: /usr/lib/x86_64-linux-gnu/libibverbs.so.1 STAGE:2022-08-15 16:12:50 135230:135230 ActivityProfilerController.cpp:294] Completed Stage: Warm...
# oneflow.nn.BatchNorm1d等 profile测试过程中模型类型变为Nonetype问题 问题描述:进行该系列接口性能测试时,会显示`TypeError: 'NoneType' object is not callable`,而在命令行中运行代码测试模型type输出正常结果 ## 测试程序 ```python @profile(torch.nn.BatchNorm2d) def profile_BatchNorm2d(test_case): m1 = torch.nn.BatchNorm2d(10) m2 = torch.nn.BatchNorm2d(10, affine=False) print(type(m1),type(m2)) input1 = torch.ones(2, 10, 8, 3) input2...
# oneflow.bernoulli profile测试过程中报错 Error Type: oneflow.ErrorProto.check_failed_error 问题描述:进行该系列接口性能测试时,会显示`Error Type: oneflow.ErrorProto.check_failed_error` ## 测试程序 ```python @profile(torch.bernoulli) def profile_bernoulli(test_case): torch.bernoulli(torch.ones(3, 3)) torch.bernoulli(torch.zeros(3, 3)) ``` ## 报错信息 ```python (base) root@training-webide-b81f61-b81f61-webide-master-0:/workspace/oneflow/python/oneflow/test/modules# python3 -m oneflow.autoprof test_bernoulli.TestBernoulli.profile_bernoulli loaded...