aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/model.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-31 06:05:04 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-31 06:07:59 -0700
commit7e2e57410eb40c0512dc573955fd256a6c787741 (patch)
treeec345a16ed486ec5a964ac5d6be20bde7d7b401c /tensorflow/contrib/lite/toco/model.h
parentca4bda919793cc2578e5c0f7440525261da16fdf (diff)
implementation of sparse_to_dense
PiperOrigin-RevId: 198710452
Diffstat (limited to 'tensorflow/contrib/lite/toco/model.h')
-rw-r--r--tensorflow/contrib/lite/toco/model.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/contrib/lite/toco/model.h
index d878ac54e4..9062c03c73 100644
--- a/tensorflow/contrib/lite/toco/model.h
+++ b/tensorflow/contrib/lite/toco/model.h
@@ -135,6 +135,7 @@ enum class OperatorType {
// special nodes in the graph to shuffle axes.
kReorderAxes,
kSelect,
+ kSparseToDense,
};
// Helper to deal with TensorFlow arrays using a different ordering of
@@ -1598,6 +1599,19 @@ struct DynamicStitchOperator : Operator {
int num_partitions;
};
+// SparseToDense operator:
+//
+// Inputs:
+// Inputs[0]: required: sparse_indices.
+// Inputs[1]: required: output_shape.
+// Inputs[2]: required: sparse_values.
+//
+// TensorFlow equivalent: SparseToDense.
+struct SparseToDenseOperator : Operator {
+ SparseToDenseOperator() : Operator(OperatorType::kSparseToDense) {}
+ bool validate_indices;
+};
+
// Alloc's are used for transient arrays only. An Alloc specifies which interval
// of the "transient_data" workspace buffer passed to inference functions, is to
// be used for the transient array at hand. The 'start' and 'end' values are