aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/python
diff options
context:
space:
mode:
authorGravatar Yifei Feng <yifeif@google.com>2018-05-29 17:49:36 -0700
committerGravatar Yifei Feng <yifeif@google.com>2018-05-29 17:49:36 -0700
commit8fb0c233a84b993a913220ab1613a6c76df1acde (patch)
tree28c1a28db708746151366127c09334b8a0162a65 /tensorflow/contrib/lite/python
parent30ecb94df8f8e0b6c553a77e5c50ec99afc81824 (diff)
Fix tflite error:
TypeError: in method 'InterpreterWrapper_CreateWrapperCPPFromBuffer', argument 1 of type 'char const *'
Diffstat (limited to 'tensorflow/contrib/lite/python')
-rw-r--r--tensorflow/contrib/lite/python/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/python/interpreter.py b/tensorflow/contrib/lite/python/interpreter.py
index 5fbc551452..219680541f 100644
--- a/tensorflow/contrib/lite/python/interpreter.py
+++ b/tensorflow/contrib/lite/python/interpreter.py
@@ -54,7 +54,7 @@ class Interpreter(object):
elif model_content and not model_path:
self._interpreter = (
_interpreter_wrapper.InterpreterWrapper_CreateWrapperCPPFromBuffer(
- model_content, len(model_content)))
+ str(model_content), len(model_content)))
if not self._interpreter:
raise ValueError(
'Failed to create model from {} bytes'.format(len(model_content)))