Skip to content

TFLu: Update RELU - #39868

Merged
tensorflow-copybara merged 2 commits into
tensorflow:masterfrom
mansnils:relu
Jul 16, 2020
Merged

tensorflow-copybara merged 2 commits into
tensorflow:masterfrom
mansnils:relu

Conversation

@mansnils

Copy link
Copy Markdown
Contributor

Current RELU was not bit exact to Convnet

Current RELU was not bit exact to Convnet

Change-Id: Ib7ffdc97a893d4133ce355e3a06f1b66e6793325
@google-ml-butler google-ml-butler Bot added the size:S CL Change Size: Small label May 26, 2020
@gbaned gbaned self-assigned this May 26, 2020
@gbaned gbaned added the comp:micro Related to TensorFlow Lite Microcontrollers label May 26, 2020
@gbaned
gbaned requested a review from petewarden May 26, 2020 12:15
@gbaned gbaned added the awaiting review Pull request awaiting review label May 28, 2020
@mansnils

Copy link
Copy Markdown
Contributor Author

@petewarden ping for review

petewarden
petewarden previously approved these changes Jun 30, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jun 30, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jun 30, 2020
@gbaned gbaned removed the awaiting review Pull request awaiting review label Jun 30, 2020
@rthadur

rthadur commented Jul 1, 2020

Copy link
Copy Markdown
Contributor

@mansnils can you please check below error

tensorflow/lite/micro/kernels/activations.cc:40:48: error: implicit conversion increases floating-point precision: 'float' to 'double' [-Werror,-Wdouble-promotion] double real_multiplier = input->params.scale / output->params.scale; ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~/tensorflow/lite/micro/kernels/activations.cc:40:48: error: implicit conversion increases floating-point precision: 'float' to 'double' [-Werror,-Wdouble-promotion] double real_multiplier = input->params.scale / output->params.scale; ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~/tensorflow/lite/micro/kernels/activations.cc:126:7: note: in instantiation of function template specialization 'tflite::ops::micro::activations::ReluQuantized<signed char>' requested here ReluQuantized<int8_t>(input, output, GetTensorData<int8_t>(input), ^/tensorflow/lite/micro/kernels/activations.cc:40:48: error: implicit conversion increases floating-point precision: 'float' to 'double' [-Werror,-Wdouble-promotion] double real_multiplier = input->params.scale / output->params.scale; ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /tensorflow/lite/micro/kernels/activations.cc:131:7: note: in instantiation of function template specialization 'tflite::ops::micro::activations::ReluQuantized<unsigned char>' requested here ReluQuantized<uint8_t>(input, output, GetTensorData<uint8_t>(input), ^

@rthadur rthadur removed the ready to pull PR ready for merge process label Jul 1, 2020
@mansnils

mansnils commented Jul 2, 2020

Copy link
Copy Markdown
Contributor Author

@rthadur error resolved

@gbaned
gbaned requested a review from petewarden July 3, 2020 17:28
@gbaned gbaned added the awaiting review Pull request awaiting review label Jul 3, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jul 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jul 6, 2020
@rthadur rthadur removed awaiting review Pull request awaiting review ready to pull PR ready for merge process labels Jul 6, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jul 6, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jul 6, 2020
@gbaned gbaned removed the ready to pull PR ready for merge process label Jul 7, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jul 7, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jul 7, 2020
@rthadur rthadur removed the ready to pull PR ready for merge process label Jul 15, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jul 15, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jul 15, 2020
@rthadur rthadur removed the ready to pull PR ready for merge process label Jul 16, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jul 16, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jul 16, 2020
@tensorflow-copybara
tensorflow-copybara merged commit f76fd43 into tensorflow:master Jul 16, 2020
@mansnils
mansnils deleted the relu branch August 27, 2020 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes comp:micro Related to TensorFlow Lite Microcontrollers ready to pull PR ready for merge process size:S CL Change Size: Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants