diff options
author | 2018-05-29 17:49:36 -0700 | |
---|---|---|
committer | 2018-05-29 17:49:36 -0700 | |
commit | 8fb0c233a84b993a913220ab1613a6c76df1acde (patch) | |
tree | 28c1a28db708746151366127c09334b8a0162a65 /tensorflow/contrib/lite/python | |
parent | 30ecb94df8f8e0b6c553a77e5c50ec99afc81824 (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.py | 2 |
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))) |