aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/context.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-03-09 10:39:50 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-09 10:44:15 -0800
commit0ebfee36ed65f3540c216f10b8ec326b7b52db3a (patch)
tree097a26bbeec3370fefc6f0964f1db98f6d92a366 /tensorflow/contrib/lite/context.h
parent87dab2d8289750c9d34f26d7d5fb18475dff985b (diff)
Make SetNumThreads apply to the eigen threads. (This creates a dependency on eigen!)
PiperOrigin-RevId: 188504172
Diffstat (limited to 'tensorflow/contrib/lite/context.h')
-rw-r--r--tensorflow/contrib/lite/context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/context.h b/tensorflow/contrib/lite/context.h
index 23946dd26e..6491d8c86a 100644
--- a/tensorflow/contrib/lite/context.h
+++ b/tensorflow/contrib/lite/context.h
@@ -324,9 +324,14 @@ typedef struct TfLiteContext {
struct TfLiteContext*, TfLiteRegistration registration,
const TfLiteIntArray* nodes_to_replace, TfLiteDelegate* delegate);
+ // Number of threads that are recommended to subsystems like gemmlowp and
+ // eigen.
+ int recommended_num_threads;
+
// TODO(ahentz): we should create a more general mechanism for this sort of
// library-global objects.
void* gemm_context;
+ void* eigen_context;
} TfLiteContext;
typedef struct _TfLiteRegistration {