We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec65665 commit b900259Copy full SHA for b900259
src/caffe/util/math_functions.cu
@@ -228,7 +228,7 @@ template <typename Dtype>
228
__global__ void unsigned_saturate_kernel(const int n, Dtype* y) {
229
CUDA_KERNEL_LOOP(index, n) {
230
if(y[index] > UNSIGNED_SATURATE_MAX)
231
- y[index] = SIGNED_SATURATE_MAX;
+ y[index] = UNSIGNED_SATURATE_MAX;
232
if(y[index] < 0)
233
y[index] = 0;
234
}
0 commit comments