Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
cc6df91004416df996af38d8e57ac7ecca40e3ed
op-plugin
/
test
/
test_v1r11_ops
下载当前目录
ascend-robot
[Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit
7634a584
创建于
1 天前
历史提交
文件
最后提交记录
最后更新时间
.keep
!875
op_plugin ut run with torch_npu version. Merge pull request
!875
from 李金鑫/ut_master
2 年前
test_add.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_addbmm.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_addcdiv.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_addcmul.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_addmv.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_apply_adam.py
!1506
Fix the adapter and ut of apply_adam Merge pull request
!1506
from 张向龙3/apply_adam_0416
2 年前
test_apply_adam_w.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_asarray.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_avg_pool2d_backward.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_avg_pool3d.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_baddbmm.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_batch_norm_reduce.py
!1477
Move UTs on PTA to OP-Plugin Part1 Merge pull request
!1477
from 张向龙3/mv_ut
2 年前
test_batchnorm_gather_stats_update.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_binary_cross_entropy_backward.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_bmm.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_bmmV2.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_broadcast.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_cast.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_cat.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_clamp.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_complex.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_constant_pad_nd.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_copy_.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_copy_broadcast.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_cos.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_ctc_loss.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_cummax.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_cumsum.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_deformable_conv2d.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_div.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_divide.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_dropout_backward.py
!1513
Move UTs on PTA to OP-Plugin Part2 Merge pull request
!1513
from 张向龙3/mv_ut_2
2 年前
test_exp.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_fused_attention_ln_qkv.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_fused_attention_qkv_grad.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_gru.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_gru_true.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_hamming_window.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_hann_window.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_index.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_index_copy.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_index_put.py
[Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Co-authored-by: zhoupeng<zp2165064878@163.com> # message auto-generated for no-merge-commit merge:
!5043
merge op_code_check into master [Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Created-by: thickhair Commit-by: zhoupeng Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单
https://gitcode.com/Ascend/op-plugin/issues/129
- [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 修改pre-commit-config.yaml,开启trailing-whitespace检查,使用pre-commit进行检查和修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】  # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin
!5043
1 天前
test_indexing.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_isin.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_layer_norm_backward.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_linalg_norm.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_logical_and.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_logical_or.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_lstm.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_lstm_backward.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_masked_select.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_matmul.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_max_pool2d_with_indices.py
del 910_95 Co-authored-by: MrMC-<shiqunze@h-partners.com> # message auto-generated for no-merge-commit merge:
!4223
merge del91095 into master del 910_95 Created-by: MrMC- Commit-by: MrMC- Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > A5改名需求 - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 删除上次修改用于兼容的910_95 # 【资料变更】 > 不涉及 # 【接口变更】 > 不涉及 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin
!4223
3 个月前
test_max_pool2d_with_indices_backward.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_memcpy.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_mish_backward.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_mul.py
Fix sparse mul out NPU registration Co-authored-by: jiangna1111<jiangna12@huawei.com> # message auto-generated for no-merge-commit merge:
!4996
merge fix-sparse-mul-out-npu into master Fix sparse mul out NPU registration Created-by: jiangna1111 Commit-by: jiangna1111 Merged-by: ascend-robot Description: <!-- PR 描述模板更新时间:20260203 --> # 【合入来源】 > <font color="red">**如有社区 issue,请关联 issue 链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部 issue 等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单 - [ ] 重构优化 - [ ] 资料更新 Fix: [运行 test_decomp.py 中 sparse 相关用例时失败](
https://gitcode.com/Ascend/pytorch/issues/2043)
# 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用 1、2、3... 进行罗列\ > 如果是需求或者重构类的 PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX 能力等内容) 修复 sparse 场景下
aten::mul.out
未注册 NPU backend 导致用例失败的问题。 1. 在
op_plugin_functions.yaml
中为
mul.out
增加 sparse 注册配置。 2. 新增
mul_out_sparse
声明和实现。 3.
mul_out_sparse
通过 dense fallback 完成计算,再转回 sparse 并写入
out
。 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在 PR 中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及。 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” 不涉及。 # 【功能验证】 > 说明测试场景,测试方法。如本次测试方式与常规单元测试不同,请详细说明测试步骤\ > 新增/变更内容是否已新增适配 UT 测试用例看护,并补充测试自验证截图 已验证相关用例: ```text TestDecompPRIVATEUSE1.test_comprehensive_to_sparse_npu_* ``` 本地验证通过:  新增ut通过:  # 【CheckList】 > PR 提交人对以下 CheckList 自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR 标题正确使用类型标签,如:feat、fix、refactor、docs、test 等 - [x] PR 持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin
!4996
5 天前
test_multi_head_attention.py
[Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Co-authored-by: zhoupeng<zp2165064878@163.com> # message auto-generated for no-merge-commit merge:
!5043
merge op_code_check into master [Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Created-by: thickhair Commit-by: zhoupeng Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单
https://gitcode.com/Ascend/op-plugin/issues/129
- [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 修改pre-commit-config.yaml,开启trailing-whitespace检查,使用pre-commit进行检查和修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】  # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin
!5043
1 天前
test_nllloss.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_nllloss_backward.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_nnpack_spatial_convolution.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前
test_norm.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_normalize_batch.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_pad_packed_sequence.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_prod.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_quantize_per_channel.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_quantize_per_tensor.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_random.py
[Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Co-authored-by: zhoupeng<zp2165064878@163.com> # message auto-generated for no-merge-commit merge:
!5043
merge op_code_check into master [Fix] Enable trailing whitespace check, Fix trailing-whitespace errors detected by pre-commit Created-by: thickhair Commit-by: zhoupeng Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单
https://gitcode.com/Ascend/op-plugin/issues/129
- [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 修改pre-commit-config.yaml,开启trailing-whitespace检查,使用pre-commit进行检查和修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】  # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin
!5043
1 天前
test_random_choice_with_mask.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_real.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_repeat_interleave.py
!1611
RepeatInterleave适配去掉transpose Merge pull request
!1611
from Zhang Yingxin/0614_repeat_interleave
1 年前
test_rrelu_with_noise.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_rrelu_with_noise_backward.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_scaled_masked_softmax.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_slice.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_sort_without_indices.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_strideadd.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_symeig.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_tensor_factorie.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_thnn_conv_depthwise2d_backward.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_true_divide.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_unique.py
!1778
Fix _unique Merge pull request
!1778
from 张向龙3/unique_0809
1 年前
test_unique2.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_var.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_view_as.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_viewcopy.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_where.py
!1577
Move UTs on PTA to OP-Plugin Part4 Merge pull request
!1577
from 张向龙3/mv_ut_4
1 年前
test_xor.py
!1490
Move UTs on PTA to OP-Plugin Part3 Merge pull request
!1490
from 张向龙3/mv_ut_3
1 年前