As TOSA does not support the tensor with zero dimensions, we can check the zero value for the static shape input.
Ideally, we should be able to check the tensor shape more broadly, such as using CPred in the TOSA type definition. But based on the discussion here It makes input type verification complicated and hard to maintain and still only applies to the case the input is statically shaped. Therefore, in this change, we have put the zero dimension check in the verification of each op, which would be flexible and maintainable.
Maybe we can name it "hasZeroDimension" (without the "s")? When I first saw the name, I was a bit confused if this checks for rank == 0 (which is permitted).