diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-03-12 10:34:34 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-03-12 10:38:25 -0700 |
commit | aab543c3013e3018d409ed2b8cd957f3465d1ab2 (patch) | |
tree | 036dd07e29f16c18cb19ee921994fd62317e4cb3 /tensorflow/contrib/lite/interpreter.cc | |
parent | 31af33430d3edbfdecbcf121681e5a586f37ba03 (diff) |
Make default number of threads trigger the default behavior for both eigen
and gemmlowp. In gemmlowp the default is '1', while in eigen it is 'number of
processors'.
PiperOrigin-RevId: 188742087
Diffstat (limited to 'tensorflow/contrib/lite/interpreter.cc')
-rw-r--r-- | tensorflow/contrib/lite/interpreter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/interpreter.cc b/tensorflow/contrib/lite/interpreter.cc index 831cfafeae..bbcd318efd 100644 --- a/tensorflow/contrib/lite/interpreter.cc +++ b/tensorflow/contrib/lite/interpreter.cc @@ -94,7 +94,7 @@ Interpreter::Interpreter(ErrorReporter* error_reporter) context_.tensors_size = 0; context_.eigen_context = nullptr; context_.gemm_context = nullptr; - context_.recommended_num_threads = 0; + context_.recommended_num_threads = -1; // Invalid to call these these except from TfLiteDelegate SetForbiddenContextFunction(&context_.GetNodeAndRegistration); |