diff options
author | 2018-04-09 13:57:12 -0700 | |
---|---|---|
committer | 2018-04-09 13:59:34 -0700 | |
commit | a4a74a3c24f0ba2f702641565299ac46cce3768c (patch) | |
tree | e5de049115f5e070b3649ce0c50a9ae1d1cb6298 /tensorflow/contrib/lite/interpreter.h | |
parent | 07e28a70874eef87772549c505d241eea2e6b9e9 (diff) |
Make node and registration getter const.
PiperOrigin-RevId: 192183067
Diffstat (limited to 'tensorflow/contrib/lite/interpreter.h')
-rw-r--r-- | tensorflow/contrib/lite/interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/interpreter.h b/tensorflow/contrib/lite/interpreter.h index 77db178783..a6d582a813 100644 --- a/tensorflow/contrib/lite/interpreter.h +++ b/tensorflow/contrib/lite/interpreter.h @@ -208,7 +208,7 @@ class Interpreter { // TODO(aselle): Create a safe ArrayHandle interface to avoid exposing this // read/write access to structure const std::pair<TfLiteNode, TfLiteRegistration>* node_and_registration( - int node_index) { + int node_index) const { if (node_index >= nodes_and_registration_.size() || node_index < 0) return nullptr; return &nodes_and_registration_[node_index]; |