Skip to content

Commit b900259

Browse files
committed
evquantize: fix the typo in unsigned saturate implementation.
1 parent ec65665 commit b900259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/caffe/util/math_functions.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ template <typename Dtype>
228228
__global__ void unsigned_saturate_kernel(const int n, Dtype* y) {
229229
CUDA_KERNEL_LOOP(index, n) {
230230
if(y[index] > UNSIGNED_SATURATE_MAX)
231-
y[index] = SIGNED_SATURATE_MAX;
231+
y[index] = UNSIGNED_SATURATE_MAX;
232232
if(y[index] < 0)
233233
y[index] = 0;
234234
}

0 commit comments

Comments
 (0)