[Enhancement] Add shape checking for reduce options (#748)
* Add shape checking for reduce options
* lint fix
* Handle special case reducing into shape-1 tensor
Allow reducing [X, d, Y] into [X, Y] or [X, 1, Y]
---------
Co-authored-by:
LeiWang1999 <leiwang1999@outlook.com>
Showing
Please register or sign in to comment