已合并
fix: lintrunner --all-files --take NEWLINE -a #35871
Jingwei Huang创建于 5月17日
fix: lintrunner --all-files --take NEWLINE -a #35871
已合并
Jingwei Huang创建于 5月17日
Jingwei Huang
Jingwei Huang成员
5月17日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

  • 需求
  • 问题单
  • issue/工单
  • 重构优化
  • 资料更新

【修改方案】

请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列
如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

【接口变更】

请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

  • 代码注释完备,正确记录错误日志
  • 代码实现进行了返回值、空指针等校验
  • PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
  • PR持续集成流水线(CI)执行通过,代码检查无异常
likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 Jingwei Huang 的贡献)
Jingwei HuangJingwei Huang成员
5月17日 创建了 pull request,commit 070171ba
openLiBingCI成员5月17日进行代码检视1
torch_npu/npu/amp/__init__.py
@@ -6,0 +2,3 @@
2+ "autocast", "GradScaler", "custom_fwd", "custom_bwd"
3+]
4+ 
5+from .autocast_mode import autocast, custom_fwd, custom_bwd # noqa: F401
openLiBingCI5月17日评论:

此条代码评论区间+2+5

【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:flake8,请Committer检视其合理性。

likedislike
openLiBingCI成员5月17日进行代码检视1
torch_npu/npu/amp/autocast_mode.py
@@ -98,0 +12,5 @@
12+ HAS_NUMPY = True
13+except ModuleNotFoundError:
14+ np = None # type: ignore[assignment]
15+ 
16+import torch
17+import torch_npu
openLiBingCI5月17日评论:

此条代码评论区间+12+17

【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:mypy,请Committer检视其合理性。

likedislike
ascend-robot
ascend-robot成员
5月17日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-Ascend/pytorch renyujin, 李伟, liangsongwei (3/3) 李伟 (1/1)
test 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)
torch_npu/_inductor 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)
torch_npu/csrc/distributed 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)
torch_npu/distributed liangsongwei, renyujin, 李伟 (3/3) 李伟 (1/1)
torch_npu/dynamo 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)
torch_npu/npu 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)
torch_npu/utils 李伟, liangsongwei, renyujin (3/3) 李伟 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

huangjingwei, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
此处折叠了77条消息 查看更多
ascend-robotascend-robot成员
5月18日 添加了label:approved
梁松伟
梁松伟成员
5月18日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
5月18日 添加了label:lgtm
ascend-robot
ascend-robot成员
5月18日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: 李伟.
Reviewers who wrote a comment of /lgtm are: liangsongwei, 李伟, renyujin.

likedislike
ascend-robotascend-robot成员
5月18日 合入了pull request