xref: /aosp_15_r20/external/executorch/backends/apple/coreml/runtime/delegate/ETCoreMLStrings.h (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 //
2 // ETCoreMLStrings.h
3 //
4 // Copyright © 2024 Apple Inc. All rights reserved.
5 //
6 // Please refer to the license found in the LICENSE file in the root directory of the source tree.
7 
8 #import <Foundation/Foundation.h>
9 
10 NS_ASSUME_NONNULL_BEGIN
11 
12 /// A class to query all the constants in the system.
13 @interface ETCoreMLStrings : NSObject
14 
15 + (instancetype)new NS_UNAVAILABLE;
16 
17 - (instancetype)init NS_UNAVAILABLE;
18 
19 /// The product name.
20 @property (class, copy, readonly, nonatomic) NSString* productName;
21 /// The product identifier.
22 @property (class, copy, readonly, nonatomic) NSString* productIdentifier;
23 
24 /// The identifier that's used to register the delegate.
25 @property (class, copy, readonly, nonatomic) NSString* delegateIdentifier;
26 
27 /// The delegate plist config name.
28 @property (class, copy, readonly, nonatomic) NSString* configPlistName;
29 
30 /// The key name for compute units.
31 @property (class, copy, readonly, nonatomic) NSString* computeUnitsKeyName;
32 
33 /// The compiled model package extension name.
34 @property (class, copy, readonly, nonatomic) NSString* compiledModelExtensionName;
35 
36 /// The model package extension name.
37 @property (class, copy, readonly, nonatomic) NSString* modelExtensionName;
38 
39 /// The model metadata relative path in the AOT blob.
40 @property (class, copy, readonly, nonatomic) NSString* metadataFileRelativePath;
41 /// The model package relative path in the AOT blob.
42 @property (class, copy, readonly, nonatomic) NSString* modelFileRelativePath;
43 /// The compiled model relative path in the AOT blob.
44 @property (class, copy, readonly, nonatomic) NSString* compiledModelFileRelativePath;
45 
46 /// The default assets directory path.
47 @property (class, copy, readonly, nonatomic, nullable) NSString* assetsDirectoryPath;
48 /// The default trash directory path.
49 @property (class, copy, readonly, nonatomic, nullable) NSString* trashDirectoryPath;
50 
51 /// The default database directory path.
52 @property (class, copy, readonly, nonatomic, nullable) NSString* databaseDirectoryPath;
53 /// The default database name.
54 @property (class, copy, readonly, nonatomic) NSString* databaseName;
55 
56 /// CPU compute unit name.
57 @property (class, copy, readonly, nonatomic) NSString* cpuComputeUnitName;
58 /// GPU compute unit name.
59 @property (class, copy, readonly, nonatomic) NSString* cpuAndGpuComputeUnitsName;
60 /// NeuralEngine compute unit name.
61 @property (class, copy, readonly, nonatomic) NSString* cpuAndNeuralEngineComputeUnitsName;
62 /// All compute units name.
63 @property (class, copy, readonly, nonatomic) NSString* allComputeUnitsName;
64 
65 /// The debug info relative path in the AOT blob.
66 @property (class, copy, readonly, nonatomic, nullable) NSString* debugInfoFileRelativePath;
67 /// The debug symbol to operation path key name.
68 @property (class, copy, readonly, nonatomic, nullable) NSString* debugSymbolToOperationPathKeyName;
69 /// The debug symbol to handles key name.
70 @property (class, copy, readonly, nonatomic, nullable) NSString* debugSymbolToHandlesKeyName;
71 
72 @end
73 
74 NS_ASSUME_NONNULL_END
75