Problems to use a converted Py Torch Vanilla NN in a Pipeline when it has hidden layers with different shapes from input layer #2422
Labels
bug
Unexpected behaviour that should be corrected (type)
🐞Describing the bug
And converted it to a Core ML package using Core ML Tools
This model can be open in Xcode with no problem
But, if I try to use it in a Pipeline:
It does not open on XCode and give me the following error:
![Screenshot 2024-12-19 at 4 47 36 PM](https://private-user-images.githubusercontent.com/10392672/398245711-00e4a439-bf91-469f-b716-c4090320e3de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MzgxOTcsIm5iZiI6MTczOTUzNzg5NywicGF0aCI6Ii8xMDM5MjY3Mi8zOTgyNDU3MTEtMDBlNGE0MzktYmY5MS00NjlmLWI3MTYtYzQwOTAzMjBlM2RlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDEyNTgxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzYmM0YWQyMjFlOWJhYjUxN2E4MjM4ODZiYWY1N2E0YmExYTYzMGMzYTNmOGJlM2M1ODk2YjdhZGVlZTY3MmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8xIpCpdQiaCGs2fXv3uKDab65ujBg_wT46z51-iputM)
This problem does not occur if
self.linear1 = nn.Linear(3, 3)
andself.linear3 = nn.Linear(3, 1)
.To Reproduce
Test.mlpackage will open without problem in Xcode, but Test-Pipeline.mlpackage will present the outputSchema error...
System environment
The text was updated successfully, but these errors were encountered: