-
Notifications
You must be signed in to change notification settings - Fork 129
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
Added Utils for iOS Task Library Backed by C++ APIs #863
base: master
Are you sure you want to change the base?
Conversation
@@ -14,7 +14,7 @@ | |||
==============================================================================*/ | |||
#import "tensorflow_lite_support/ios/task/vision/sources/TFLObjectDetector.h" | |||
#import "tensorflow_lite_support/ios/sources/TFLCommon.h" | |||
#import "tensorflow_lite_support/ios/sources/TFLCommonUtils.h" | |||
#import "tensorflow_lite_support/ios/utills/c/sources/TFLCommonCUtils.h" |
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.
typo: utils/c/
, not utills
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.
This change makes the repo unbuildable. Could you fix and make sure that these command can run without errors?
bazel build $(bazel query //tensorflow_lite_support/ios/...)
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.
@priankakariatyml
After importing the PR into internal repo, it turned out that this change is too disruptive and we can't proceed without you removing ios:TFCommonUtils entirely and updating it into utils/c:TFLCommonCUtils
and utils:TFLCommonUtils
. Unlike Bazel OSS build, our internal build system is more strict about dependency management so that you can't use header file that aren't explicitly included in dependency.
I think the disruptive change this refactor brings doesn't worth its effort, so could you just add + (BOOL)checkCppError:(const absl::Status &)status toError:(NSError **)error;
into ios:TFLCommonUtils
without splitting the C and C++ utils?
The problem with adding cpp functions into |
Acked the issue with turning the TFLCommonUtils into ObjC++ if we add the C++ code there. What about creating a new class TFLCommonCppUtils that extends TFLCommonUtils? We can accept the trade-off that the code will not be very neat to reduce the amount of changes needed. The problem with the current refactoring is that it caused a lot of changes across many files. When importing the code into internal repo, it leads to many unintentional changes that are very tricky to apply, due to the difference between the GitHub codebase and the internal codebase. |
Got it. I'll retain the C functions in TFLCommonUtils and extend it for Cpp. Also, I think I'll have to revert the folder structure changes. |
I have raised a new PR for these changes: #866 |
No description provided.