Skip to content

Commit

Permalink
Added a guard to prevent from crashing for certain cases.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 284272480
Change-Id: Idb6e566037d83406921e5d318aaa4d35a336edfa
  • Loading branch information
peterma123456789 authored and tensorflower-gardener committed Dec 6, 2019
1 parent 1d96a61 commit bd04562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/grappler/costs/graph_properties.cc
Expand Up @@ -1911,7 +1911,7 @@ Status GraphProperties::UpdateMerge(SymbolicShapeRefiner* shape_refiner,
// Infer the shape of the second output once and for all since it never
// changes.
ShapeHandle out1 = ic->Scalar();
ic->set_output(1, out1);
if (ic->num_outputs() >= 2) ic->set_output(1, out1);
}

ShapeHandle out;
Expand Down

0 comments on commit bd04562

Please sign in to comment.