已合并
fix torch.randint testcases #30889
chaijinwei创建于 2月13日
fix torch.randint testcases #30889
已合并
chaijinwei创建于 2月13日
chaijinwei
2月13日

【合入来源】

https://gitcode.com/Ascend/pytorch/issues/1547

【修改方案】

  1. tensor.random_框架测加入了校验逻辑对齐原生torch。torch.randint(-10, 10, (2, ,3 ,4), dtype=uint8)会调用tensor.random_接口,这里传入的-10小于uint8类型最小值0,需要适配用例。

【资料变更】

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

【接口变更】

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

【功能验证】

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

【CheckList】

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

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 chaijinwei 的贡献)
Cchaijinwei
2月13日 创建了 pull request,commit a7b71bca
Cchaijinwei
2月13日 关联了issue:[Usage]: torch.arange和tensor.random_算子报错和告警信息对齐原生torch
Cchaijinwei
2月13日 将目标分支从 master 修改为 v2.7.1
Cchaijinwei
2月13日 update merge request[project id: 7404318, iid: 30889, commit_id: 4c2882593b2159b3082771bccb0290cb1938bc62] virtual merging success
ascend-robot
ascend-robot成员
2月13日 评论:

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
test liujunzhu, chujinjin (2/2) liujunzhu (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
ascend-robotascend-robot成员
2月13日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
2月13日 评论:

CLA Signature Pass

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

likedislike
Cchaijinwei
2月13日 修改了pull request 的描述
此处折叠了5条事件消息 查看更多
Cchaijinwei
2月13日 修改了pull request 的描述
chaijinwei
2月13日 评论:

compile

likedislike
Cchaijinwei
2月13日 修改了pull request 的描述
此处折叠了5条事件消息 查看更多
ascend-robotascend-robot成员
2月13日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
2月13日 评论:
流水线 PR-pipeline_pytorch#7385 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_LibTorch >>>
Build_ARM >>>
Build_ARM_inductor 🛑 >>>
Build_X86_py311 🛑 >>>
Build_ARM_py311 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_DIST_X86 🛑 >>>
UT_X86_Part_01 >>>
UT_X86_Part_02 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
Cchaijinwei
2月13日 修改了pull request 的描述
chujinjin成员
2月13日 评论:

/lgtm

likedislike
chaijinwei
2月13日 评论:

/check-pr

likedislike
ascend-robot
ascend-robot成员
2月13日 评论:

The following labels are not ready.

lgtm: Please wait for reviewers to review the code.

approved: Please wait for committers to review the code.

likedislike
liujunzhu
liujunzhu成员
2月13日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
2月13日 添加了label:lgtm
chaijinwei
2月13日 评论:

/check-pr

likedislike
ascend-robot
ascend-robot成员
2月13日 评论:

The following label is not ready.

approved: Please wait for committers to review the code.

likedislike
liujunzhu
liujunzhu成员
2月13日 评论:

/approve

likedislike
ascend-robotascend-robot成员
2月13日 添加了label:approved
ascend-robot
ascend-robot成员
2月13日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: liujunzhu.
Reviewers who wrote a comment of /lgtm are: liujunzhu, chujinjin.

likedislike
ascend-robotascend-robot成员
2月13日 合入了pull request