-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【Hackathon No.61】增加 unfold 算子FP16/BF16单测 #52963
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
self.input_height, | ||
self.input_width, | ||
] | ||
if self.dtype == np.uint16: |
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.
这里不需要判断了
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.
已修改
) | ||
class TestUnfoldBF16Op(TestUnfoldOp): | ||
# The test is time consuming, modify the parameters to reduce the time | ||
def init_data(self): |
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.
继承了TestUnfoldOp的话init_data是不是不用再写了,我看你上面也有针对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.
不修改参数bfloat16测试时间20秒,修改参数减少测试时间,已增加注释
The test is time consuming, modify the parameters to reduce the time
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
PR types
Others
PR changes
Others
Describe
增加 unfold 算子FP16/BF16单测
BF16测试增加init_data,修改初始化参数减少测试时间