Updated documentation for MPPCommonUtils.m
This commit is contained in:
parent
4e38c7e623
commit
f37689fc33
|
@ -18,7 +18,7 @@
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/** Error domain of Mediapipe Task related errors. */
|
||||
/** Error domain of MediaPipe Task related errors. */
|
||||
extern NSString *const MPPTasksErrorDomain;
|
||||
|
||||
/** Helper utility for the all tasks which encapsulates common functionality. */
|
||||
|
|
|
@ -96,7 +96,7 @@ NSString *const MPPTasksErrorDomain = @"com.google.mediapipe.tasks";
|
|||
// The mapping to absl::Status::code() is done to generate a more specific error code than
|
||||
// MPPTasksErrorCodeError in cases when the payload can't be mapped to
|
||||
// MPPTasksErrorCode. This can happen when absl::Status returned by TFLite library are in turn
|
||||
// returned without modification by Mediapipe cc library methods.
|
||||
// returned without modification by MediaPipe cc library methods.
|
||||
if (errorCode > MPPTasksErrorCodeLast || errorCode <= MPPTasksErrorCodeFirst) {
|
||||
switch (status.code()) {
|
||||
case absl::StatusCode::kInternal:
|
||||
|
|
Loading…
Reference in New Issue
Block a user