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_google_absl//absl/types:optional",
"@com_googlesource_code_re2//:re2", "@com_googlesource_code_re2//:re2",
], ],
linkopts = tflite_linkopts() + select({ linkopts = select({
"//tensorflow:android": [ "//tensorflow:windows": [],
"-lm", "//conditions:default": ["-lm"],
],
"//conditions:default": [],
}), }),
) )
@ -284,11 +282,9 @@ cc_test(
"//third_party/eigen3", "//third_party/eigen3",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
linkopts = tflite_linkopts() + select({ linkopts = select({
"//tensorflow:android": [ "//tensorflow:windows": [],
"-lm", "//conditions:default": ["-lm"],
],
"//conditions:default": [],
}), }),
) )
@ -473,11 +469,9 @@ cc_test(
"//tensorflow/lite/testing:util", "//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
linkopts = tflite_linkopts() + select({ linkopts = select({
"//tensorflow:android": [ "//tensorflow:windows": [],
"-lm" "//conditions:default": ["-lm"],
],
"//conditions:default": [],
}), }),
) )

View File

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