message: added test for TF_ShapeInferenceContextScalar
diff: @@ -316,5 +316,15 @@ TEST(OpsTest, ShapeInferenceSubshape) {
  TF_DeleteShapeHandle(handle);
  }
  +TEST(OpsTest, ShapeInferenceScalarShape) {
  + NodeDef def;
  + shape_inference::InferenceContext c(0, def, MakeOpDef(0, 0),
  + {S({})}, {}, {}, {});
  + TF_ShapeHandle* TF_scalar_shape = TF_ShapeInferenceContextScalar(C_CTX(&c));
  + shape_inference::ShapeHandle* scalar_shape =
  + reinterpret_cast<shape_inference::ShapeHandle*>(TF_scalar_shape);
  + ASSERT_EQ("[]", c.DebugString(*scalar_shape));
  +}
  +
  } // namespace
  } // namespace tensorflow
  