message: return if input does not have type
diff: @@ -433,7 +433,10 @@ ONNX_OPERATOR_SET_SCHEMA(
  auto* output_shape = ctx.getOutputType(0)->mutable_tensor_type()->mutable_shape();
  auto* output_length = output_shape->add_dim();
  - if (ctx.getInputType(0)->tensor_type().has_shape()) {
  + if (!hasNInputShapes(ctx, 1)) {
  + return;
  + }
  +
  int64_t rank = static_cast<int64_t>(ctx.getInputType(0)->tensor_type().shape().dim_size());
  int64_t start = getAttribute(ctx, "start", 0);
  if (start < 0)
  @@ -444,7 +447,6 @@ ONNX_OPERATOR_SET_SCHEMA(
  end += rank;
  end = (end < 0) ? 0 : (end > rank) ? rank : end;
  output_length->set_dim_value((end - start) < 0 ? 0 : (end - start));
  - }
  })
  .PartialDataPropagationFunction([](DataPropagationContext& ctx) {
  if (ctx.getInputType(0)->tensor_type().has_shape()) {
  