What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

/kind bug
/kind task

What does this PR do / why do we need it:

  1. Put the parameter validation of the Summary operator into the python layer
  2. Delete the infer code in c++ layer.

This makes summary parameter validation simpler and easier to maintain

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers: