message: Prevent segments with no inputs
diff: @@ -585,6 +585,13 @@ tensorflow::Status CreateTRTNode(const std::vector<EngineInfo>& infos, int pos,
  }
  }
  }
  + // We don't support segments with no inputs. Fall back to native TF here to
  + // avoid crash later. Constant folding should've folded the ops that make up
  + // these segments.
  + if (inputs.size() == 0) {
  + return tensorflow::errors::Internal("Segment has no inputs (possible "
  + "constfold failure)");
  + }
  const bool calibrate_int8 =
  (info.precision_mode == INT8MODE && info.use_calibration);
  