-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 6th No.10】Update paddle.searchsorted -part #64331
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
out_data_[idx] = seq_size_; | ||
} else { | ||
if (right_) { | ||
out_data_[idx] = static_cast<OutType>(phi::funcs::UpperBound<T1, T2>( | ||
sequence_ptr, seq_size_, *value_ptr)); | ||
out_data_[idx] = static_cast<OutType>( |
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.
用 paddle/phi/kernels/funcs/algorithm.h
中实现的phi::funcs::UpperBound
是有什么问题么?
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.
paddle/phi/kernels/funcs/algorithm.h 中的 phi::funcs::UpperBound 和 LowerBound 不能直接支持 phi::dtype::float16 和 phi::dtype::bfloat16 吧,需要转一下类型
对应修改下中文文档 |
好的 |
…4331) * update searchsorted * fix impl * fix impl dtype * fix impl dtype * fix impl dtype * rerun ci * update test * fix test * fix test * update fp16 test * fix impl * fix impl * fix impl * fix impl * fix impl
PR Category
User Experience
PR Types
Improvements
Description
Update
paddle.searchsorted
to support fp16 and bf16 data typerefer to: #64001 (comment)