It would be more general to check that either inputs_ size equals ctx.getNumInputs() or that the last inputs_ is variadic. _Originally posted by @gramalingam in https://github.com/onnx/onnx/pull/5990#discussion_r1511584181_