11 Star 55 Fork 20

MindSpore / xai

 / 详情

Add input argument checkings for visual.cv.saliency and PLC APIs

DONE
RFC 拥有者
创建于  
2022-09-28 15:10

Design(设计方案)

  • Describe/Explain the general idea of the design. Pseudo-code is allowed

TASK 1

for

mindspore_xai.visual.cv
normalize_saliency()
saliency_to_rgba()
saliency_to_image()

mindspore_xai.explainer
PseudoLinearCoef()
PseudoLinearCoef.normalize()
PseudoLinearCoef.plot()

add checkings for every input arguments (at the beginning of the function):

  1. none checking (if which cannot be none)
  2. type checking
  3. element type checking (if argument is a list tuple tensor or numpy)
  4. value range checking
    raise ValueError immediately if any checking failed

TASK 2

update the APIs, add optional/可选 to the arguments with default value

TASK 3

  1. update PLC API doc and checking code, predictor can accept both ms.float32 and ms.float64 as input/output
  2. update PLC API doc and checking code, input argument: features dtype can be ms.float32 and ms.float64

评论 (0)

TonyNG 创建了RFC
TonyNG 负责人设置为RaymondCHENG
TonyNG 修改了描述
TonyNG 修改了标题
TonyNG 计划截止日期设置为2022-09-29
TonyNG 计划开始日期设置为2022-09-28
TonyNG 计划截止日期2022-09-29 修改为2022-10-07
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
TonyNG 修改了描述
RaymondCHENG 任务状态TODO 修改为ACCEPTED
RaymondCHENG 任务状态ACCEPTED 修改为WIP
RaymondCHENG 任务状态WIP 修改为DONE
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
Python
1
https://gitee.com/mindspore/xai.git
git@gitee.com:mindspore/xai.git
mindspore
xai
xai

搜索帮助