Skip to content

Commit

Permalink
Small improvement to TANH/Sigmoid implementation.
Browse files Browse the repository at this point in the history
Change-Id: Ia9fa7e70e15a5174a045ee5f98cf4f78e6a43ef6
  • Loading branch information
wwwind committed Nov 28, 2019
1 parent a858c19 commit 279f926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/lite/kernels/activations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void EvalUsingLookupTableTanh16Bit(struct OpData* data, const TfLiteTensor* inpu
int32_t input_data = *ptr_input_data;

if (data->input_left_shift == 1) {
input_data = gemmlowp::SaturatingRoundingMultiplyByPOT<1>(input_data);
input_data <<= 1;
}

// Scale by 3/4 to expand range [-8,8]->[-10.7,10.7].
Expand Down

0 comments on commit 279f926

Please sign in to comment.