ort.sessionInputCount( session as ort.session ) as Number
Returns the number of inputs of a session.
ort.session
const session = ort.session(cts.doc("testmodel.onnx")); ort.sessionInputCount(session) => 1