登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
人工智能
>
机器学习/深度学习
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
88
Star
648
Fork
1.4K
Ascend
/
pytorch
暂停
代码
Issues
41
Pull Requests
350
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
974
【图模式1.8】修复图模式下 nbytes() 的问题 & 算子适配 1.8
已合并
刘嘉巍:dev
Ascend:master
刘嘉巍
创建于 2022-06-30 11:20
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
<!-- 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**: 1. 在进入算子前对 tensor 进行转置操作会触发原生 pytorch 中对数据空间尺寸的检查。由于此时尚未构图,tensor 的数据量为 0 导致报错。解决方案为在 torch_npu 中添加对应逻辑,在图模式下走插件侧流程。 2. 1.5 中实际创建 ge::tensor 时只会刷新 data_ptr,在 1.8 中还需要额外刷新 nbytes(原因为 StorageImpl 的解耦)。 3. 为 AddKernelNpu,Conv2dKernelNpu,Conv2dBackwardKernelNpu,BatchNormKernelNpu 和 BatchNormBackwardKernelNpu 添加 sensitive format。 3. 迁移 PR https://gitee.com/ascend/pytorch-develop/pulls/2756,解决在图模式和单算子模式间切换带来的问题。 **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**: 1. test_mm.py 中输入数据的 shape 发生变动主要因为 matmul 算子目前存在精度随着数据 shape 增大而下降的问题,因此这里减小输入数据 shape 以保证通过测试。 2. test_baddbmm.py 和 test_batchnorm_backward_eval.py 这两个 UT 当前为失败 UT,与本次 PR 中的修改无关。 
怎样手动合并此 Pull Request
git checkout master
git pull https://gitee.com/liu-jiaweikf/pytorch.git dev
git push origin master
评论
31
提交
1
文件
16
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
weili10
weili10
王波
wangboroy
dilililiwhy
dilililiwhy
刘嘉巍
liu-jiaweikf
DaiFu
daifu12345
zhangqiongwen
zqwen
AtlasAccount
atlasaccount
i-robot
I-am-a-robot
HuaweiAscend
HUAWEI-ASCEND_admin
郭光浩
guo-guanghao
王姜奔
wangjiangben_hw
shaoyf
shaoyf
hpp034
hpp034
feng123www
feng123www
未设置
最少人数
0
测试
weili10
weili10
王波
wangboroy
dilililiwhy
dilililiwhy
刘嘉巍
liu-jiaweikf
DaiFu
daifu12345
zhangqiongwen
zqwen
AtlasAccount
atlasaccount
i-robot
I-am-a-robot
HuaweiAscend
HUAWEI-ASCEND_admin
郭光浩
guo-guanghao
王姜奔
wangjiangben_hw
shaoyf
shaoyf
hpp034
hpp034
feng123www
feng123www
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
ci-pipeline-passed
ascend-cla/yes
lgtm
approved
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
参与者
(5)
Python
1
https://gitee.com/ascend/pytorch.git
git@gitee.com:ascend/pytorch.git
ascend
pytorch
pytorch
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册