Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • 合并请求
  • !21599

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板

Update op test framework !21599

  • Report abuse
!21599 已合并 12月 06, 2019 由 saxon_zh@saxon_zh 创建
#<User:0x000055935a6a5ea8>
  • 概览 43
  • 提交 23
  • 变更 4

Created by: juncaipeng

In order to add ci check for check_grad and upgrade the precision of test from float to double, we modify the op_test.py as follows:

  • replace old OpTest with OpTestBase, and use all inputs instead only one input to infer dtype
  • add OpTestInt8, which is the parent class of the op test with int8 precision
  • add OpTestFp16, which is the parent class of the op test with float16 precision. OpTestFp16 demands the test to call check_grad at least once.
  • add OpTest, which is the parent class of the op test with float32/64 precision. OpTest demands the test to call check_grad with float64 precision at least once.

TODO:

  • add restrictions to numeric_grad_delta, max_relative_error for check_grad with float64 precision
  • add check for op_whit_list.py in check_api_approve.sh
  • forbid op test to inherit OpTestBase by add check in check_api_approve.sh

TODO: 如果从fp32升级到fp64检查,fp32检查可以不需要了。 简单的改一下单测中fp16继承关系,使得存量问列表最小集

NO_NEED_FP64_CHECK_GRAD_OP_LIST:真正的白名单,应该是那些需要被豁免检查的op或者case NEED_TO_FIX_OP_LIST:是存量问题

指派人
分配到
审核者
Request review from
无
里程碑
无
分配里程碑
工时统计
标识: paddlepaddle/Paddle!21599
Source branch: github/fork/juncaipeng/update_ops1
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7