Skip to content

ONNX outputs don't match model outputs after serialization #2980

Closed
@rogancarr

Description

@rogancarr

When I save a model to ONNX, load, and apply it with ApplyOnnxModel, it adds a zero as a suffix to all columns, including the expected output. This includes input columns, so the resulting IDataView now has double the columns, plus the output. To top it off, it's not clear how to find the output because it's been renamed.

Example:
ML.NET model
Input: Features
Output: Score
Resulting Schema: Features, Score

After Onnx Serialization / Deserialization:
Input: Features
Output: Features0, Score0
Resulting Schema: Features, Features0, Score0

I am not sure if this is by design, but it feels like a bug.

Metadata

Metadata

Assignees

Labels

P3Doc bugs, questions, minor issues, etc.bugSomething isn't workingusabilitySmoothing user interaction or experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions