Skip to content

Conversation

kexinzhao
Copy link
Contributor

fix #9684

struct ValueClip {
HOSTDEVICE T operator()(const T& x) const {
const T kThreshold = -64.;
const T kThreshold = static_cast<T>(-64.);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a comment here about the criteria for choosing the value of the threshold?

@wangkuiyi wangkuiyi merged commit b2a1c9e into PaddlePaddle:develop Apr 6, 2018
@Xreki Xreki added the 预测 原名Inference,包含Capi预测问题等 label Apr 11, 2018
@kexinzhao kexinzhao deleted the softmax_float16 branch April 27, 2018 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

预测 原名Inference,包含Capi预测问题等

Projects

None yet

Development

Successfully merging this pull request may close these issues.

float16 support to non-cudnn softmax op on GPU

3 participants