Constructor OnnxSessionSignature
OnnxSessionSignature(IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyDictionary<string, string>, IReadOnlyDictionary<string, IReadOnlyList<long>>)
What the loaded graph actually declares, read from ORT after creation rather than assumed from a preset. This is what turns "somebody pointed a preset at a different export" from silently wrong vectors into a message naming the file.
public OnnxSessionSignature(IReadOnlyList<string> InputNames, IReadOnlyList<string> OutputNames, IReadOnlyDictionary<string, string> InputTypes, IReadOnlyDictionary<string, IReadOnlyList<long>> OutputShapes)
Parameters
InputNamesIReadOnlyList<string>Every input ORT demands in the feed, in the graph's declared order.
OutputNamesIReadOnlyList<string>Every output the graph produces.
InputTypesIReadOnlyDictionary<string, string>Input name to ORT's element type, as a string.
OutputShapesIReadOnlyDictionary<string, IReadOnlyList<long>>Output name to its declared dimensions. A symbolic dimension is -1: only the static ones can be compared with a preset's declared dimension count.