Share via

Xamarin iOS can't bundle mlmodel

evmd 1 Reputation point
2022-08-05T14:50:45.967+00:00

I am trying to make a machine learning app. I have an .mlmodel file, but when I try to build my app I always hit two errors that cancels it.

Resources/model.cs(20,20): Error CS0542: 'model': member names cannot be the same as their enclosing type (CS0542)

Resources/model.cs(23,23): Error CS0102: The type 'modelOutput' already contains a definition for 'Identity' (CS0102)

My model comes from a tf model that I converted using the coremltools converter, and the model.cs is autogenerated by that file according to what it says at the top. Anyone know what I am doing wrong?

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.