message: Remove `CHECK`-fails from `IsSimplifiableReshape`
diff: @@ -1686,7 +1686,11 @@ bool ConstantFolding::IsSimplifiableReshape(
  if (!IsReshape(node)) {
  return false;
  }
  - CHECK_LE(2, node.input_size());
  + if (2 > node.input_size()) {
  + return errors::Internal("Node ", node.name(),
  + " must have at most 2 inputs but has ",
  + node.input_size());
  + }
  const NodeDef* new_shape = node_map_->GetNode(node.input(1));
  if (!IsReallyConstant(*new_shape)) {
  return false;
  @@ -1702,7 +1706,11 @@ bool ConstantFolding::IsSimplifiableReshape(
  if (!s.ok()) {
  return false;
  }
  - CHECK_EQ(1, outputs.size());
  + if (outputs.size() != 1) {
  + return errors::Internal("Node ", node.name(),
  + " must have exactly 1 output but has ",
  + outputs.size());
  + }
  const std::vector<OpInfo::TensorProperties>& props =
  properties.GetInputProperties(node.name());
  