[Contrib][Fakelowp] Change Lut Size for Tanh (#68334)
Summary:
Reference code LUT size increased and now mininum
starts from 0, instead of 7000 earlier
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68334
Reviewed By: jiecaoyu
Differential Revision: D32467332
Pulled By: hl475
fbshipit-source-id: 3e4510e09374519aebe657a31f0b1ccde117e761
diff --git a/caffe2/contrib/fakelowp/quant_lut_fp16_fake_op.h b/caffe2/contrib/fakelowp/quant_lut_fp16_fake_op.h
index d621036..fca53dd 100644
--- a/caffe2/contrib/fakelowp/quant_lut_fp16_fake_op.h
+++ b/caffe2/contrib/fakelowp/quant_lut_fp16_fake_op.h
@@ -30,7 +30,7 @@
Y->scale = Y_scale;
Y->zero_point = Y_offset;
- constexpr int tanhLUTMinOffset = 7000;
+ constexpr int tanhLUTMinOffset = 0;
constexpr int tanhLUTMaxOffset = 18000;
constexpr int lutSize = tanhLUTMaxOffset - tanhLUTMinOffset;