Fix hsplit vsplit dsplit crash when section is 0 (#69342)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/69270 #68970
Dim modulo by zero when split_size is 0.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69342
Reviewed By: ngimel
Differential Revision: D33692683
Pulled By: mruberry
fbshipit-source-id: aab82e5617c23c265b7dd3a8bac2dd245aaef5b4
(cherry picked from commit bcbf3b4c4d587394bc7586f32310f637fc9e3de7)