文件最后提交记录最后更新时间
[security]fix 'new' and 'stoi' Co-authored-by: SCh_zx<1325467101@qq.com> # message auto-generated for no-merge-commit merge: !26126 merge master into master [security]fix 'new' and 'stoi' Created-by: SCh_zx Commit-by: SCh-zx;SCh_zx Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: 对new操作添加错误捕获;用strtol代替stoi **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!261267 个月前
skip npu sync func to master Co-authored-by: lihui<lihui488@huawei.com> # message auto-generated for no-merge-commit merge: !27578 merge master into master skip npu sync func to master Created-by: lihui488 Commit-by: lihui Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!275785 个月前
CachingHostAllocator master Co-authored-by: zihao-intuition<chenzihao65@huawei.com> # message auto-generated for no-merge-commit merge: !26498 merge master into master CachingHostAllocator master Created-by: gcw_5tF58QLT Commit-by: zihao-intuition Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind task **What does this PR do / why do we need it**: 需求 **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!264986 个月前
!18042 Register npuBasicAutogradNotImplementedFallbackImpl for AutogradPrivateUse1. Merge pull request !18042 from shaoyf/master_warn 1 年前
!9500 The test cases support NPU. Merge pull request !9500 from yuhaiyan/master-dev4 2 年前
Adapt parameter "device_id" for init_process_group Co-authored-by: l30044004<louyujing@huawei.com> # message auto-generated for no-merge-commit merge: !27487 merge master into master Adapt parameter "device_id" for init_process_group Created-by: louyujing Commit-by: l30044004 Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # torch.distributed.init_process_group可传入参数device_id,如果传入的device_id包含cuda,在调用torch.distributed.barrier()时会获取process_group中包含cuda的device_id,导致在npu上运行报错; 因此,给torch.distributed.init_process_group添加装饰器,将参数device_id中的cuda替换为npu。 **Special notes for your reviewers**: See merge request: Ascend/pytorch!274875 个月前
[Feature]rename head file and add cmake for libtorch_npu 2 年前
!22818 from blob add deleter Merge pull request !22818 from wgb/master 10 个月前
!22678 Resize_ to support ncdhw to other dims Merge pull request !22678 from wgb/master 10 个月前
add hasPrimaryContext Co-authored-by: huangyunlong2022<huangyunlong4@h-partners.com> # message auto-generated for no-merge-commit merge: !27392 merge 2.10ct into master add hasPrimaryContext Created-by: huangyunlong2022 Commit-by: huangyunlong2022 Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!273925 个月前
[feature] register "npugraph_ex" backend Co-authored-by: xuzhenhua2025<xuzhenhua4@huawei.com> # message auto-generated for no-merge-commit merge: !26325 merge master into master [feature] register "npugraph_ex" backend Created-by: xuzhenhua2025 Commit-by: xuzhenhua2025 Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** /kind feature **What does this PR do / why do we need it**: Register "npugraph_ex" backend, we can use it as ```python compiled_model = torch.compile(Model().npu(), backend="npugraph_ex", fullgraph=True, dynamic=False) ``` **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!263256 个月前
!8437 Add official source code for test_autograd.py Merge pull request !8437 from yuhaiyan/master-dev1 2 年前
!16093 Update test_common_rules.py/test_eager_transformers.py Merge pull request !16093 from yuhaiyan/master-dev2 1 年前
!9596 The test cases of fx support NPU. Merge pull request !9596 from 王夏夏/master 2 年前
!10831 Add test files: test_jit.py/jit. Merge pull request !10831 from yuhaiyan/master-dev1 2 年前
!22839 Add weights_only=False Merge pull request !22839 from yuhaiyan/master 10 个月前
[fix] fix empty_like_npu faketensor issue to support _native_mha in compile Co-authored-by: zqwenn<zhangqiongwen@huawei.com> # message auto-generated for no-merge-commit merge: !27466 merge master_empty_like_npu_fix into master [fix] fix empty_like_npu faketensor issue to support _native_mha in compile Created-by: zqwenn Commit-by: zqwenn Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!274665 个月前
Fixed failed testcases Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> # message auto-generated for no-merge-commit merge: !26362 merge cherry-pick-mr-26361-1762514880867-auto into master Fixed failed testcases Created-by: yuhaiyan Commit-by: yuhaiyan Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!263626 个月前
AI assist developer for python DT second batch for master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26387 merge master into master AI assist developer for python DT second batch for master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!263876 个月前
AI assist developer for python dt for master Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !27014 merge master into master AI assist developer for python dt for master Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!270146 个月前
AI assist developer for python dt master Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26538 merge master into master AI assist developer for python dt master Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!265386 个月前
Fixed failed tests Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> # message auto-generated for no-merge-commit merge: !26323 merge cherry-pick-mr-26322-1762427574308-auto into master Fixed failed tests Created-by: yuhaiyan Commit-by: yuhaiyan Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!263236 个月前
fix bug of storage.cpu Co-authored-by: huangyunlong2022<huangyunlong4@h-partners.com> # message auto-generated for no-merge-commit merge: !27555 merge 2.10st into master fix bug of storage.cpu Created-by: huangyunlong2022 Commit-by: huangyunlong2022 Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!275555 个月前
AI assist developer for python dt for master Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !27014 merge master into master AI assist developer for python dt for master Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!270146 个月前
!21966 Document description optimization Merge pull request !21966 from shaoyf/master_readme 11 个月前
!20432 Fixed the failed testcases Merge pull request !20432 from yuhaiyan/master-dev1 1 年前
!20432 Fixed the failed testcases Merge pull request !20432 from yuhaiyan/master-dev1 1 年前
add interface to set op exec timeout with ms Co-authored-by: 周锐淇<zhouruiqi5@huawei.com> # message auto-generated for no-merge-commit merge: !26177 merge master into master add interface to set op exec timeout with ms Created-by: rich9527 Commit-by: 周锐淇 Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > /kind feature **What does this PR do / why do we need it**: This PR adds the ability to set the NPU operation timeout from Python. It allows users to configure a custom timeout for NPU operations to prevent long-running or stuck operations during execution. **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!261776 个月前
!19783 Remove expose for deprecated apis. Merge pull request !19783 from 刘嘉巍/master 1 年前
!19170 Fixed some failed testcases Merge pull request !19170 from yuhaiyan/master-dev1 1 年前
!11238 To get synchronized files. Merge pull request !11238 from yuhaiyan/master-dev1 2 年前
TORCH MAIN SYNC : add update_wrapped_number (bugfix to ForwardADWithScalars) Co-authored-by: dilililiwhy<why.wuhuanyu@huawei.com> # message auto-generated for no-merge-commit merge: !26081 merge main_sync_20251028 into master TORCH MAIN SYNC : add update_wrapped_number (bugfix to ForwardADWithScalars) Created-by: dilililiwhy Commit-by: dilililiwhy Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: 2.10.0.dev20251110 **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: https://github.com/pytorch/pytorch/issues/160513 https://github.com/pytorch/pytorch/pull/165784 https://github.com/pytorch/pytorch/pull/166657 See merge request: Ascend/pytorch!260816 个月前
!6717 [Codecheck] test codecheck. Merge pull request !6717 from will-devil/myccheck 2 年前
!12854 [RFC][Feature] Add support for device extension autoloading Merge pull request !12854 from Yuanhao Ji/feat/autoload 1 年前
!13891 add ParallelTcpStore and register to rendezvous Merge pull request !13891 from 叶子凡/master_TCP 1 年前
add test case for event elapsed_time Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !26731 merge master_event_ut into master add test case for event elapsed_time Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!267316 个月前
!18630 Alarm for the deprecating API Merge pull request !18630 from yuhaiyan/master-dev1 1 年前
!15327 Delete some skipped test cases for test_convolution.py / test_autograd.py / test_optim.py. Merge pull request !15327 from yuhaiyan/master-dev5 1 年前
!12854 [RFC][Feature] Add support for device extension autoloading Merge pull request !12854 from Yuanhao Ji/feat/autoload 1 年前
!12238 Update test_binary_ufuncs of pt 2.4 Merge pull request !12238 from 张向龙3/binary_ufuncs_24 1 年前
!8912 Synchronize the different test cases for v2.2.0. Merge pull request !8912 from yuhaiyan/master-dev1 2 年前
!9500 The test cases support NPU. Merge pull request !9500 from yuhaiyan/master-dev4 2 年前
!24436 Add testcases for driver version and fixed the test_fake_tensor.py Merge pull request !24436 from yuhaiyan/master-dev3 8 个月前
!10958 Add test files: test_flop_counter/test_jit_autocast/test_jit_fuser/... Merge pull request !10958 from yuhaiyan/master-dev3 2 年前
!8912 Synchronize the different test cases for v2.2.0. Merge pull request !8912 from yuhaiyan/master-dev1 2 年前
!9365 The test files support NPU. Merge pull request !9365 from 王夏夏/master 2 年前
!9365 The test files support NPU. Merge pull request !9365 from 王夏夏/master 2 年前
!10598 Delete the URL in code. Merge pull request !10598 from yuhaiyan/master-dev7 2 年前
!9365 The test files support NPU. Merge pull request !9365 from 王夏夏/master 2 年前
!9365 The test files support NPU. Merge pull request !9365 from 王夏夏/master 2 年前
!7605 Add UT files Merge pull request !7605 from yuhaiyan/master-dev1 2 年前
!8797 Update torch testcase for master Merge pull request !8797 from 王广斌/master_copy 2 年前
!13076 Update test_jit.py. Merge pull request !13076 from yuhaiyan/master-dev1 1 年前
!10958 Add test files: test_flop_counter/test_jit_autocast/test_jit_fuser/... Merge pull request !10958 from yuhaiyan/master-dev3 2 年前
!10958 Add test files: test_flop_counter/test_jit_autocast/test_jit_fuser/... Merge pull request !10958 from yuhaiyan/master-dev3 2 年前
!10958 Add test files: test_flop_counter/test_jit_autocast/test_jit_fuser/... Merge pull request !10958 from yuhaiyan/master-dev3 2 年前
!22454 Fix test_matmul_npu Merge pull request !22454 from dilililiwhy/fix_test_matmul_npu 10 个月前
!8912 Synchronize the different test cases for v2.2.0. Merge pull request !8912 from yuhaiyan/master-dev1 2 年前
!12772 Delete the URLs in code. Merge pull request !12772 from yuhaiyan/master-dev2 1 年前
!21353 Add test_native_mha.py. Merge pull request !21353 from 刘嘉巍/master 1 年前
!8894 Synchronize official version 2.2 code for test cases. Merge pull request !8894 from 王夏夏/master 2 年前
!7605 Add UT files Merge pull request !7605 from yuhaiyan/master-dev1 2 年前
!24210 batch copy Merge pull request !24210 from 关龙锋/batch_copy 8 个月前
add torch.npu.memory._set_allocator_settings(only support expandable_segments) and testcases Co-authored-by: zhaoyu<nanzhaogang@qq.com> # message auto-generated for no-merge-commit merge: !25488 merge alloctor into master add torch.npu.memory._set_allocator_settings(only support expandable_segments) and testcases Created-by: zhaoyu65 Commit-by: zhaoyu Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > /kind feature **What does this PR do / why do we need it**: 1、增加torch_npu.npu.memory.\_set\_allocator\_settings接口,仅支持expandable_segments:True或expandable_segments:False场景。 2、增加对应的测试用例。 **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!254887 个月前
!20986 Refactoring device_count Merge pull request !20986 from huangyunlong/2.7ct 1 年前
[bugfix] Add proper handling for view and factory function for csan, and supplement the corresponding test cases. Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !26406 merge cherry-pick-mr-26401-1762829831101-auto into master [bugfix] Add proper handling for view and factory function for csan, and supplement the corresponding test cases. Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: **What type of PR is this?** bug **What does this PR do / why do we need it**: 增加 ArgumentHander.parse_input() 缺失的 is_factory 参数, 并补充了相应的看护用例。 **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: 开源社区对应改动如下: https://github.com/pytorch/pytorch/commit/c4ed03cea17d2ec9b09427786627bba479f4cb6b See merge request: Ascend/pytorch!264066 个月前
!9845 update test_trace_rules.py for v2.3 and skip a failed test case. Merge pull request !9845 from yuhaiyan/master-dev4 2 年前
!12772 Delete the URLs in code. Merge pull request !12772 from yuhaiyan/master-dev2 1 年前
!12235 UPdate test_ops_gradients and test_ops_fwd_gradients of pt24 Merge pull request !12235 from 张向龙3/ops_grad_24 1 年前
!10484 Add test files. Merge pull request !10484 from yuhaiyan/master-dev5 2 年前
!8912 Synchronize the different test cases for v2.2.0. Merge pull request !8912 from yuhaiyan/master-dev1 2 年前
!7765 [UT] add official source testcase for test_out_dtype_op Merge pull request !7765 from 张伟康/pta_master_dev 2 年前
!12189 Update test_reductions of pt2.4 Merge pull request !12189 from 张向龙3/reductions_24 1 年前
!8330 Delete the public URL in code Merge pull request !8330 from yuhaiyan/master-dev6 url fixed url fixed fixed fixed fixed 2 年前
!13576 [Fix] Enable UT for isin.Tensor_Tensor. Merge pull request !13576 from 刘嘉巍/master 1 年前
!12609 add test_sparse.py Merge pull request !12609 from huangyunlong/2.4sparse 1 年前
!14232 [master] fix sparse ut Merge pull request !14232 from DaiFu/2407SparseUT 1 年前
!13062 [master]add sparse csr ut Merge pull request !13062 from DaiFu/2407SparseUT 1 年前
!12178 Update test_tensor_creation_ops of pt2.4 Merge pull request !12178 from 张向龙3/creation_ops_24 1 年前
!16166 Fix testing init. Merge pull request !16166 from yuhaiyan/master-dev5 1 年前
Update test_torch.py Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> # message auto-generated for no-merge-commit merge: !27371 merge master-dev2 into master Update test_torch.py Created-by: yuhaiyan Commit-by: yuhaiyan Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!273715 个月前
!13891 add ParallelTcpStore and register to rendezvous Merge pull request !13891 from 叶子凡/master_TCP 1 年前
!10598 Delete the URL in code. Merge pull request !10598 from yuhaiyan/master-dev7 2 年前
!12165 Update test_type_promotion of pt2.4 Merge pull request !12165 from 张向龙3/prom_24 1 年前
!12150 Update test_unary_ufuncs of pt2.4 Merge pull request !12150 from 张向龙3/unary_ufunc_24 1 年前
[fix] add _npu_dtype_cast_backward sharding strategy Co-authored-by: zqwenn<zhangqiongwen@huawei.com> # message auto-generated for no-merge-commit merge: merge master_npu_dtype_cast_backsard_register_sharding into master [fix] add _npu_dtype_cast_backward sharding strategy Created-by: zqwenn Commit-by: zqwenn Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!253088 个月前
!8289 Add test_view_ops ut Merge pull request !8289 from 王广斌/mv_sort_master 2 年前
Update onnx_test_common.py Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> # message auto-generated for no-merge-commit merge: merge master-dev1 into master Update onnx_test_common.py Created-by: yuhaiyan Commit-by: yuhaiyan Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!254858 个月前
!12569 Add test files for the onnx module: test_pytorch_jit_onnx.py/test_pytorch_onnx_no_runtime.py/... Merge pull request !12569 from yuhaiyan/master-dev7 1 年前
[bugfix]revert api profiler_trace Co-authored-by: chenweiheng<chenweiheng1@hisilicon.com> # message auto-generated for no-merge-commit merge: !27632 merge master into master [bugfix]revert api profiler_trace Created-by: chenweiheng Commit-by: chenweiheng Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug **What does this PR do / why do we need it**: revert api profiler_trace **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # None **Special notes for your reviewers**: None See merge request: Ascend/pytorch!276325 个月前
!12569 Add test files for the onnx module: test_pytorch_jit_onnx.py/test_pytorch_onnx_no_runtime.py/... Merge pull request !12569 from yuhaiyan/master-dev7 1 年前
!12569 Add test files for the onnx module: test_pytorch_jit_onnx.py/test_pytorch_onnx_no_runtime.py/... Merge pull request !12569 from yuhaiyan/master-dev7 1 年前
README.md

简介

test目录为PTA相关的测试用例。

安装依赖

pip3 install -r requirements.txt

补全脚本

该操作需要联网

cd test
bash get_synchronized_files.sh

通过以上操作,会自动补齐testfiles_synchronized.txt和testfolder_synchronized.txt中的文件或文件夹。

跳过失败用例

export DISABLED_TESTS_FILE=./unsupported_test_cases/.pytorch-disabled-tests.json

如果不是在test目录下运行测试用例,需要传入.pytorch-disabled-tests.json的绝对路径。

执行方式

执行单个测试脚本

运行以test开头的文件。以test_autocast.py为例:

方式一:

python test_autocast.py

方式二:

python run_test.py -i test_autocast

说明:部分以test开头的脚本不是直接运行的脚本,比如jit中的测试脚本是通过test_jit.py执行的。

执行具体的用例

通过-k参数传入具体的用例名。以test_autocast.py为例:

方式一:

python test_autocast.py -v -k test_autocast_nn_fp32

方式二:

python run_test.py -v -i test_autocast -- -k test_autocast_nn_fp32

执行全量UT的方式

# 进入到test目录的上一级
cd ../

运行非分布式全量用例:

python ci/access_control_test.py --all

运行分布式全量用例:

python ci/access_control_test.py --distributed

FAQ

  1. 报错:"dictionary changed size during interation".

    如果python 环境是3.8.1版本,报错在unitest/case.py中,可考虑是sys.modules被修改导致的。第三方包可能会有对sys.modules的修改,比如beartype。 此问题为python 3.8.1版本/3.9.0版本的已知bug,可按照 https://github.com/python/cpython/issues/73806 中修改方式修改,将 for v in sys.modules.values() 改为 for v in list(sys.modules.values())

    可用于复现问题的用例: python test_jit.py -v -k test_annotated_empty_dict

  2. test_public_bindings.py 用例的功能

    该用例是为了校验接口的公开规范性,如果该用例报错,请确认报错的接口是否要公开,并按照报错的提示进行修改。