onnx/onnx

Why does SplitToSequence not allow zeros in `split` input?

Open

#6,356 opened on Sep 9, 2024

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (3,585 forks)batch import
contributions welcomegood first issuemodule: specquestion

Repository metrics

Stars
 (16,592 stars)
PR merge metrics
 (Avg merge 1d 23h) (80 merged PRs in 30d)

Description

Question

The ONNX 1.18.0 documentation says that for operator SplitToSequence:

‘split’ must contain only positive numbers. 

Why are zeros not allowed? The semantics for zeros seems unambiguous, and it seems like they should be allowed per the principle of least surprise.

Contributor guide