aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-01-26 14:14:34 -0800
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-01-26 14:14:34 -0800
commit7c41a89e22b6bd895082a30e6f2847ae56c5db31 (patch)
tree020c81ffaf7a966c854f2ab1adb0e9665ae38620
parent982549ea3423df4270ff154e5c764beb43d472da (diff)
Fix build error with GCC 7.2.1 on AWS Linux 2 (#16470)
This fix fixes a build failure when compiling with GCC 7.2.1 on AWS Linux 2: ``` gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) ``` The eror output was: ``` ... ./tensorflow/contrib/lite/toco/model.h:1567:25: error: 'std::function' has not been declared void EraseArrays(std::function<bool(const string&)> discardable) { ..... ``` This fix is related to 16046. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r--tensorflow/contrib/lite/toco/model.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h
index d1af371fd4..6fba8f2629 100644
--- a/tensorflow/contrib/lite/toco/model.h
+++ b/tensorflow/contrib/lite/toco/model.h
@@ -15,6 +15,7 @@ limitations under the License.
#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_H_
#define TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_H_
+#include <functional>
#include <initializer_list>
#include <memory>
#include <string>