Check negative index for attributes of Slice-1 (#3810)
Check negative index for attributes of Slice-1 (#3810)

* check negative value

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

* only perform rank inference

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

* resolve warning

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

* fix warning

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

* starts + ends

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

* change if; any_of; update comments

Signed-off-by: Chun-Wei Chen <3d21e1cad9aa0e4aa10838f859be24690cfc357c@gmail.com>

Co-authored-by: Ashwini Khade <c033833d70de1f14d546d5b23d66cc02095a83ed@microsoft.com>
onnx/onnx,onnx/onnx,onnx/onnx,onnx/onnx