aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/model.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-11 15:03:34 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-11 15:11:43 -0700
commitcd9ac6414531a8f7308a7698f0954084443d5120 (patch)
treec080c9455930885090ce8e0b5cb9a21f7d445a51 /tensorflow/contrib/lite/toco/model.h
parent95f12f9bd5e8f73a67d534a608a384fe73729dad (diff)
Modify the python interface to toco to provide arithmetic operations used by the model.
PiperOrigin-RevId: 196314416
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r--tensorflow/contrib/lite/toco/model.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h
index aefa9ac5cb..d878ac54e4 100644
--- a/tensorflow/contrib/lite/toco/model.h
+++ b/tensorflow/contrib/lite/toco/model.h
@@ -1829,6 +1829,8 @@ class Model {
}
const ArrayMap& GetArrayMap() const { return arrays; }
+ int64 ArithmeticOpsCount() const { return ops_count; }
+
// Optional arrays are used for optional tensors,
// these tensors do not have data, but with reserved names as op inputs.
std::set<string> optional_arrays;
@@ -1845,6 +1847,8 @@ class Model {
std::size_t transient_data_size = 0;
// For code-generation only: required alignment of the transient_data buffer
std::size_t transient_data_alignment = 0;
+ // Arithmatic operations performed in the model.
+ int64 ops_count = 0;
private:
// The associative array mapping names to Array's.