-
Notifications
You must be signed in to change notification settings - Fork 537
[Core ML] Improve error logging #9801
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9801
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 2 PendingAs of commit 6c1f90d with merge base c178637 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@pytorchbot label "topic: not user facing" |
#import "ETCoreMLAssetManager.h" | ||
#import <ETCoreMLAsset.h> | ||
#import <ETCoreMLLogging.h> | ||
#import <database.hpp> | ||
#import "ETCoreMLAsset.h" | ||
#import "ETCoreMLLogging.h" | ||
#import "database.hpp" | ||
#import <iostream> | ||
#import <json_key_value_store.hpp> | ||
#import <serde_json.h> | ||
#import "json_key_value_store.hpp" | ||
#import "serde_json.h" | ||
#import <sstream> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we group the imports by type?
#import "ETCoreMLAssetManager.h"
#import "ETCoreMLAsset.h"
#import "ETCoreMLLogging.h"
#import "database.hpp"
#import "json_key_value_store.hpp"
#import "serde_json.h"
#import <iostream>
#import <sstream>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
Looks great! Thanks for the PR. I added ci/trunk to run our mac jobs in CI. @cymbalrush do you know if the tests in backends/apple/coreml/runtime/test run in our CI? If not, are you running them locally? |
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
Yes they are part of the CI. I ran them locally also. |
@cymbalrush looks like there are some CI failures. Can you also run the lintrunner? (Once dev-requirements are installed, you can run |
8ad1594
to
9d8e1be
Compare
Ran lintrunner and fixed the failure. |
Re-running CI |
@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@shoumikhin @metascroy looks like |
@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cymbalrush it doesn't seem related to your change though. |
Yes, it's not related to the change. |
|
||
#if ET_LOG_ENABLED | ||
#define ETCoreMLLogInfo(formatString, ...) \ | ||
ET_LOG(Info, "%s", [NSString stringWithFormat:formatString, ##__VA_ARGS__].UTF8String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ET_LOG(Info, "%s", [NSString stringWithFormat:formatString, ##__VA_ARGS__].UTF8String) | |
ET_LOG(Info, "%s", [NSString stringWithFormat:@formatString, ##__VA_ARGS__].UTF8String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cymbalrush here's the root cause
@cymbalrush there are a lot of CI failures, e.g., in unittest / macos / macos-job:
|
@shoumikhin @metascroy Sorry I had the change in my local but it was not pushed. Should be fixed now. |
@shoumikhin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Re-running CI |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cymbalrush there is one more CI failure in building the macOS wheels. It is a linking issue in building coreml_executor_runner. You only changed the build type from Release to Debug, but maybe in conflicts with something in the coreml/workspace? Separately, I'm not really sure why the coreml_executor_runner is being built as part of the executorch wheels. Maybe @jathu knows why? |
@metascroy it's because we build the wheels, export a model using that wheel, then test the exported model with the coreml_executor_runner. If there is a build error, we need to fix it executorch/.ci/scripts/test_model.sh Lines 225 to 247 in f2a08da
|
Signed-off-by: Gyanendra Sinha <[email protected]> Address comments Address comments
Updated to build for |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Landing from phabricator |
Differential Revision: D72251859 Pull Request resolved: pytorch#9801
Summary
Fixes error logging.
ET_LOG
init
failedTest plan
init
succeeded and the error message was logged.