-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back out "Back out "[executorch][PR] [Core ML] Implement intermediate…
… tensor logging"" Differential Revision: D61359607 Pull Request resolved: #4739
- Loading branch information
Showing
33 changed files
with
1,281 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
backends/apple/coreml/runtime/sdk/ETCoreMLModelDebugInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// ETCoreMLModelDebugInfo.h | ||
// | ||
// Copyright © 2024 Apple Inc. All rights reserved. | ||
// | ||
// Please refer to the license found in the LICENSE file in the root directory of the source tree. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class ETCoreMLModelStructurePath; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// A class representing the profiling info of an operation. | ||
__attribute__((objc_subclassing_restricted)) | ||
@interface ETCoreMLModelDebugInfo : NSObject | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
|
||
/// Constructs an `ETCoreMLModelDebugInfo` instance. | ||
/// | ||
/// @param pathToDebugSymbolMap Operation path to debug symbol map. | ||
/// @param pathToDebugHandlesMap Operation path to debug handles map. | ||
- (instancetype)initWithPathToDebugSymbolMap:(NSDictionary<ETCoreMLModelStructurePath*, NSString*>*)pathToDebugSymbolMap | ||
pathToDebugHandlesMap: | ||
(NSDictionary<ETCoreMLModelStructurePath*, NSArray<NSString*>*>*)pathToDebugHandlesMap | ||
NS_DESIGNATED_INITIALIZER; | ||
|
||
/// Constructs an `ETCoreMLModelDebugInfo` instance. | ||
/// | ||
/// @param data The json data. | ||
/// @param error On failure, error is filled with the failure information. | ||
+ (nullable instancetype)modelDebugInfoFromData:(NSData*)data error:(NSError* __autoreleasing*)error; | ||
|
||
/// Operation path to debug symbol map. | ||
@property (readonly, strong, nonatomic) NSDictionary<ETCoreMLModelStructurePath*, NSString*>* pathToDebugSymbolMap; | ||
|
||
/// Operation path to debug handles map. | ||
@property (readonly, strong, nonatomic) | ||
NSDictionary<ETCoreMLModelStructurePath*, NSArray<NSString*>*>* pathToDebugHandlesMap; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.