@@ -106,9 +106,9 @@ @implementation ExecuTorchMethodMetadata {
106
106
NSString *_name;
107
107
NSMutableArray <NSNumber *> *_inputValueTags;
108
108
NSMutableArray <NSNumber *> *_outputValueTags;
109
- NSMutableDictionary <NSNumber *, ExecuTorchTensorMetadata *> *_inputTensorMetadatas ;
110
- NSMutableDictionary <NSNumber *, ExecuTorchTensorMetadata *> *_outputTensorMetadatas ;
111
- NSMutableArray <ExecuTorchTensorMetadata *> *_attributeTensorMetadatas ;
109
+ NSMutableDictionary <NSNumber *, ExecuTorchTensorMetadata *> *_inputTensorMetadata ;
110
+ NSMutableDictionary <NSNumber *, ExecuTorchTensorMetadata *> *_outputTensorMetadata ;
111
+ NSMutableArray <ExecuTorchTensorMetadata *> *_attributeTensorMetadata ;
112
112
NSMutableArray <NSNumber *> *_memoryPlannedBufferSizes;
113
113
NSMutableArray <NSString *> *_backendNames;
114
114
NSInteger _instructionCount;
@@ -127,9 +127,9 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
127
127
_instructionCount = methodMeta.num_instructions ();
128
128
_inputValueTags = [[NSMutableArray alloc ] initWithCapacity: inputCount];
129
129
_outputValueTags = [[NSMutableArray alloc ] initWithCapacity: outputCount];
130
- _inputTensorMetadatas = [NSMutableDictionary new ];
131
- _outputTensorMetadatas = [NSMutableDictionary new ];
132
- _attributeTensorMetadatas = [[NSMutableArray alloc ] initWithCapacity: attributeCount];
130
+ _inputTensorMetadata = [NSMutableDictionary new ];
131
+ _outputTensorMetadata = [NSMutableDictionary new ];
132
+ _attributeTensorMetadata = [[NSMutableArray alloc ] initWithCapacity: attributeCount];
133
133
_memoryPlannedBufferSizes = [[NSMutableArray alloc ] initWithCapacity: memoryPlannedBufferCount];
134
134
_backendNames = [[NSMutableArray alloc ] initWithCapacity: backendCount];
135
135
@@ -152,7 +152,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
152
152
}
153
153
return nil ;
154
154
}
155
- _inputTensorMetadatas [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
155
+ _inputTensorMetadata [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
156
156
}
157
157
}
158
158
for (NSInteger index = 0 ; index < outputCount; ++index) {
@@ -174,7 +174,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
174
174
}
175
175
return nil ;
176
176
}
177
- _outputTensorMetadatas [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
177
+ _outputTensorMetadata [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
178
178
}
179
179
}
180
180
for (NSInteger index = 0 ; index < attributeCount; ++index) {
@@ -185,7 +185,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
185
185
}
186
186
return nil ;
187
187
}
188
- [_attributeTensorMetadatas addObject: [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: result.get ()]];
188
+ [_attributeTensorMetadata addObject: [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: result.get ()]];
189
189
}
190
190
for (NSInteger index = 0 ; index < memoryPlannedBufferCount; ++index) {
191
191
auto result = methodMeta.memory_planned_buffer_size (index);
@@ -221,16 +221,16 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
221
221
return _outputValueTags;
222
222
}
223
223
224
- - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)inputTensorMetadatas {
225
- return _inputTensorMetadatas ;
224
+ - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)inputTensorMetadata {
225
+ return _inputTensorMetadata ;
226
226
}
227
227
228
- - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)outputTensorMetadatas {
229
- return _outputTensorMetadatas ;
228
+ - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)outputTensorMetadata {
229
+ return _outputTensorMetadata ;
230
230
}
231
231
232
- - (NSArray <ExecuTorchTensorMetadata *> *)attributeTensorMetadatas {
233
- return _attributeTensorMetadatas ;
232
+ - (NSArray <ExecuTorchTensorMetadata *> *)attributeTensorMetadata {
233
+ return _attributeTensorMetadata ;
234
234
}
235
235
236
236
- (NSArray <NSNumber *> *)memoryPlannedBufferSizes {
0 commit comments