per review comments

This commit is contained in:
Koan-Sin Tan 2020-09-17 22:44:51 +08:00
parent cfb8cb1bb1
commit d6db570529
2 changed files with 10 additions and 16 deletions

View File

@ -151,11 +151,9 @@ cc_library(
"@com_google_absl//absl/types:optional",
"@com_googlesource_code_re2//:re2",
],
linkopts = tflite_linkopts() + select({
"//tensorflow:android": [
"-lm",
],
"//conditions:default": [],
linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
)
@ -284,11 +282,9 @@ cc_test(
"//third_party/eigen3",
"@com_google_googletest//:gtest",
],
linkopts = tflite_linkopts() + select({
"//tensorflow:android": [
"-lm",
],
"//conditions:default": [],
linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
)
@ -473,11 +469,9 @@ cc_test(
"//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest",
],
linkopts = tflite_linkopts() + select({
"//tensorflow:android": [
"-lm"
],
"//conditions:default": [],
linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
)

View File

@ -14,11 +14,11 @@ limitations under the License.
==============================================================================*/
#include "tensorflow/lite/kernels/kernel_util.h"
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <initializer_list>
#include <vector>