Open
Atanh算子aclnn通路aclnnInplaceAtanh在golden中未注册 #40
sleeveenAdd on  13 days ago
sleeveenCollaborators
13 days ago Create

golden地址:https://gitcode.com/opencann/operator-artifacts/blob/master/Atanh/golden文件/atanh.py

spec中已注册通路如下,未包含目标接口
spec = {
"atanh": "AtanhKernelSpec",
"aclnnAtanh": "AtanhAclnnSpec",
"torch.atanh": "AtanhTorchSpec",
"tf.math.atanh": "AtanhTensorFlowSpec",
"onnx.Atanh": "AtanhOnnxSpec",
}

likedislike
陈陈展熹Collaborators
13 days ago Associated pull request
陈陈展熹Collaborators
13 days ago Associated pull request
陈展熹Collaborators
13 days ago Comments:

补充说明:已核对 ops-math 开源仓当前 master,Atanh 已提供 aclnnAtanh 和 aclnnInplaceAtanh 两条 ACLNN 通路的 Golden。

源码:math/atanh/tests/assets/golden.py。其中 __spec__ 已将 aclnnInplaceAtanh 注册到 AclnnInplaceAtanhTestSpec,入口为 golden(inputRef, **kwargs),计算后通过 inputRef.copy_(result) 原地写回输入。

本 issue 链接的 operator-artifacts 独立 Golden 缺少该接口注册,补齐见 operator-artifacts PR !299。

likedislike