diff options
author | Benoit Steiner <bsteiner@google.com> | 2018-03-16 15:10:39 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-03-16 15:14:43 -0700 |
commit | 7b33deb9c8a7c62f194e21b6364400d26e511567 (patch) | |
tree | 0bc5dbd591c0890294569ef5514833a769d562aa /tensorflow/python/grappler | |
parent | af1c668e2db5bcfcd3b156800c4b982c9423e858 (diff) |
Don't inline functions in the grappler item builder since this part of the code doesn't
support custom ops. Instead we will rely on the function optimizer.
PiperOrigin-RevId: 189400462
Diffstat (limited to 'tensorflow/python/grappler')
-rw-r--r-- | tensorflow/python/grappler/item.i | 1 | ||||
-rw-r--r-- | tensorflow/python/grappler/tf_optimizer.i | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/tensorflow/python/grappler/item.i b/tensorflow/python/grappler/item.i index 9a84c60b04..593d38206d 100644 --- a/tensorflow/python/grappler/item.i +++ b/tensorflow/python/grappler/item.i @@ -83,7 +83,6 @@ static GItem TF_NewItem( tensorflow::grappler::ItemConfig cfg; cfg.ignore_user_placement = ignore_user_placement; cfg.ignore_colocation = ignore_colocation; - cfg.inline_functions = true; std::unique_ptr<tensorflow::grappler::GrapplerItem> item = tensorflow::grappler::GrapplerItemFromMetaGraphDef("item", meta_graph, cfg); if (!item) { diff --git a/tensorflow/python/grappler/tf_optimizer.i b/tensorflow/python/grappler/tf_optimizer.i index de9326ccfc..39ca71e99a 100644 --- a/tensorflow/python/grappler/tf_optimizer.i +++ b/tensorflow/python/grappler/tf_optimizer.i @@ -98,7 +98,6 @@ PyObject* TF_OptimizeGraph( const tensorflow::MetaGraphDef& metagraph, bool verbose, const string& graph_id, TF_Status* out_status) { tensorflow::grappler::ItemConfig item_config; - item_config.inline_functions = false; item_config.apply_optimizations = false; item_config.ignore_user_placement = false; std::unique_ptr<tensorflow::grappler::GrapplerItem> grappler_item = |