aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-11-17 16:53:39 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-17 16:58:02 -0800
commitf386693307fca2ef09ef7618d214f148c2944ff2 (patch)
treedabdaee2dc189c1b00d1bb1746f153a2a2ae6c30 /tensorflow/contrib/lite
parentee9b4eb5ee09bc505a51b1ba9325823444ac1dd2 (diff)
Avoid a dependency between the interpreter and tensorflow
PiperOrigin-RevId: 176179748
Diffstat (limited to 'tensorflow/contrib/lite')
-rw-r--r--tensorflow/contrib/lite/interpreter.h2
-rw-r--r--tensorflow/contrib/lite/string.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/interpreter.h b/tensorflow/contrib/lite/interpreter.h
index 8bf60e91f7..65c61e44be 100644
--- a/tensorflow/contrib/lite/interpreter.h
+++ b/tensorflow/contrib/lite/interpreter.h
@@ -24,7 +24,6 @@ limitations under the License.
#include "tensorflow/contrib/lite/context.h"
#include "tensorflow/contrib/lite/error_reporter.h"
#include "tensorflow/contrib/lite/simple_memory_arena.h"
-#include "tensorflow/core/platform/platform.h"
namespace tflite {
@@ -232,7 +231,6 @@ class Interpreter {
// If you know that your sizes are not changing, you need not call this.
// Returns status of success or failure.
- // TODO(aselle): Madde
TfLiteStatus AllocateTensors();
// Invoke the interpreter (run the whole graph in dependency order).
diff --git a/tensorflow/contrib/lite/string.h b/tensorflow/contrib/lite/string.h
index ecd6f04ec2..7f8f4e851e 100644
--- a/tensorflow/contrib/lite/string.h
+++ b/tensorflow/contrib/lite/string.h
@@ -17,11 +17,10 @@ limitations under the License.
#define _THIRD_PARTY_TENSORFLOW_CONTRIB_LITE_STRING_H_
#include <string>
-#include "tensorflow/core/platform/platform.h"
namespace tflite {
-#ifndef PLATFORM_GOOGLE
+#ifndef HAS_GLOBAL_STRING
using std::string;
#endif