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 3c2d549 commit 3c5f610Copy full SHA for 3c5f610
src/caffe/layers/relu_layer.cpp
@@ -83,6 +83,7 @@ void ReLULayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
83
if (quant_out) {
84
// do not reuse "top_data"; it is shifted during the computation
85
caffe_cpu_quantize<Dtype>(top[0]->count(), top[0]->mutable_cpu_data(), output_scale_, output_zero_point_);
86
+ caffe_cpu_saturate(top[0]->count(), top[0]->mutable_cpu_data(), saturate_);
87
}
88
if (quant_in) {
89
caffe_cpu_quantize<Dtype>(bottom[0]->count(), bottom[0]->mutable_cpu_data(),
0 commit comments