diff options
author | 2018-09-27 06:54:10 -0700 | |
---|---|---|
committer | 2018-09-27 06:59:45 -0700 | |
commit | 3d30dd424c0404ea5349c0d2acdde2acd4e0aa97 (patch) | |
tree | 37e6bd9c7c643d139a314b3df41e29ea4aa27f4d /tensorflow/contrib/lite/kernels/fake_quant.cc | |
parent | 234229b014cb0cfe4bf8e9466db79d596085faba (diff) |
Update kernel evals to use new kernel signatures.
PiperOrigin-RevId: 214767788
Diffstat (limited to 'tensorflow/contrib/lite/kernels/fake_quant.cc')
-rw-r--r-- | tensorflow/contrib/lite/kernels/fake_quant.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tensorflow/contrib/lite/kernels/fake_quant.cc b/tensorflow/contrib/lite/kernels/fake_quant.cc index f9bc3747cb..b51af72fe6 100644 --- a/tensorflow/contrib/lite/kernels/fake_quant.cc +++ b/tensorflow/contrib/lite/kernels/fake_quant.cc @@ -68,11 +68,14 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { const auto* params = reinterpret_cast<TfLiteFakeQuantParams*>(node->builtin_data); - reference_ops::FakeQuant(GetTensorData<float>(op_context.input), - GetTensorDims(op_context.input), params->min, - params->max, params->num_bits, - GetTensorData<float>(op_context.output), - GetTensorDims(op_context.output)); + tflite::FakeQuantParams op_params; + op_params.num_bits = params->num_bits; + op_params.minmax.min = params->min; + op_params.minmax.max = params->max; + reference_ops::FakeQuant(op_params, GetTensorShape(op_context.input), + GetTensorData<float>(op_context.input), + GetTensorShape(op_context.output), + GetTensorData<float>(op_context.output)); return kTfLiteOk; } |