-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
May some bug on custom layer... #2427
Comments
more:
|
There is some misunderstanding in how custom op works Principle OverviewIf you want a custom op that is beyond the op set provided by Core ML, then in principle you need to
PractiseStarting from mlprogram, Idk if Core ML framework still provides custom kernel registration, so we need to decompose the custom op also in AOT There are 2 ways you can achieve it:
|
Btw, are you hitting "cannot convert torch.grid_sample" issue? If so, could you please create a minimal reproduce so we can help you implement? I'll @ you in the PR so you can learn how to implement torch op translation to help with #2415, if you cannot find a reproduce for |
🐞Describing the bug
To Reproduce
using this code can generate an simplest nn net in mlmodel, then loading in objective-c project just the using API
will cause this error log dump in console.
I don't know whats wrong on this network infer...Also I cannot judge, this is coremltools bug ?or CoreML framework bug? or some bug in my custom op?
System environment (please complete the following information):
Additional context
@YifanShenSZ I'm not sure if there are any bugs in my toy code, but if you have some free time, would you mind reviewing it for me?
The text was updated successfully, but these errors were encountered: