aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-02-27 15:19:47 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-27 15:23:57 -0800
commit2c25f08b6f97155bd5ce95aada5a3cc9b916176f (patch)
tree115fe5a596c07d49c9199fc47c28be5f75d3ad26 /tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
parente101ce9c1c8399fecd6679293d8cb2065ce8d47f (diff)
Implement support for unpartitioning tf.nn.embedding_lookup into a single gather.
PiperOrigin-RevId: 187241089
Diffstat (limited to 'tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc')
-rw-r--r--tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc b/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
index 0e2e5ecf30..fc26f997a6 100644
--- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
+++ b/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
@@ -1542,6 +1542,12 @@ bool PropagateFixedSizes::Run(Model* model, std::size_t op_index) {
case OperatorType::kTranspose:
ProcessTransposeOperator(model, static_cast<TransposeOperator*>(op));
break;
+ case OperatorType::kDynamicPartition:
+ case OperatorType::kDynamicStitch:
+ // DynamicPartition/DynamicStitch are currently only supported for
+ // transforms that remove them, so we avoid propagating shapes through
+ // them and let things settle once they've been removed.
+ break;
default:
// Unimplemented, another graph transformation should drop it.
LOG(FATAL) << "Unhandled operator type " << OperatorTypeName(op->type);