aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/grappler/model_analyzer.cc
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <bsteiner@google.com>2017-11-28 12:49:38 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-28 12:53:20 -0800
commita86f2d2c1af7ac0e5c36eedb18d74c022737fc25 (patch)
tree22e3ca5caba030b4b73e7fdec3040315c4138fce /tensorflow/python/grappler/model_analyzer.cc
parentb911049edfbb4a4eb07b3b46ed144da6cd33f9c1 (diff)
Added an option to assume that the shape of fed nodes in unknown since any shape can be actually used.
PiperOrigin-RevId: 177203023
Diffstat (limited to 'tensorflow/python/grappler/model_analyzer.cc')
-rw-r--r--tensorflow/python/grappler/model_analyzer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/grappler/model_analyzer.cc b/tensorflow/python/grappler/model_analyzer.cc
index 7d365c3be9..da5b03234e 100644
--- a/tensorflow/python/grappler/model_analyzer.cc
+++ b/tensorflow/python/grappler/model_analyzer.cc
@@ -27,7 +27,7 @@ ModelAnalyzer::ModelAnalyzer(const GrapplerItem& item) : item_(item) {}
Status ModelAnalyzer::GenerateReport(std::ostream& os) {
GraphProperties properties(item_);
- TF_RETURN_IF_ERROR(properties.InferStatically());
+ TF_RETURN_IF_ERROR(properties.InferStatically(false));
for (const auto& node : item_.MainOpsFanin()) {
PrintNodeInfo(node, properties, os);