-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[PHI kernels] add eye op for XPU #67637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
'num_rows': self.n, | ||
'num_columns': self.m, | ||
} | ||
result = np.eye(self.n, self.m, dtype=self.dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在bf16已经可以使用不单独处理了吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要的,这个问题下一个PR修复
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先合入,下个PR添加bf16单测
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
self.n = 1000 | ||
self.m = 100 | ||
|
||
class TestXPUEyeOp2(TestXPUEyeOp): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
再多加几个test,我记得之前有要求每个kernel至少五个
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,下个PR加一下
PR Category
Custom Device
PR Types
Others
Description
add eye op for XPU