@@ -106,9 +106,9 @@ @implementation ExecuTorchMethodMetadata {
106106 NSString *_name;
107107 NSMutableArray <NSNumber *> *_inputValueTags;
108108 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 ;
112112 NSMutableArray <NSNumber *> *_memoryPlannedBufferSizes;
113113 NSMutableArray <NSString *> *_backendNames;
114114 NSInteger _instructionCount;
@@ -127,9 +127,9 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
127127 _instructionCount = methodMeta.num_instructions ();
128128 _inputValueTags = [[NSMutableArray alloc ] initWithCapacity: inputCount];
129129 _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];
133133 _memoryPlannedBufferSizes = [[NSMutableArray alloc ] initWithCapacity: memoryPlannedBufferCount];
134134 _backendNames = [[NSMutableArray alloc ] initWithCapacity: backendCount];
135135
@@ -152,7 +152,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
152152 }
153153 return nil ;
154154 }
155- _inputTensorMetadatas [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
155+ _inputTensorMetadata [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
156156 }
157157 }
158158 for (NSInteger index = 0 ; index < outputCount; ++index) {
@@ -174,7 +174,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
174174 }
175175 return nil ;
176176 }
177- _outputTensorMetadatas [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
177+ _outputTensorMetadata [@(index)] = [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: tensorMetadataResult.get ()];
178178 }
179179 }
180180 for (NSInteger index = 0 ; index < attributeCount; ++index) {
@@ -185,7 +185,7 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
185185 }
186186 return nil ;
187187 }
188- [_attributeTensorMetadatas addObject: [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: result.get ()]];
188+ [_attributeTensorMetadata addObject: [[ExecuTorchTensorMetadata alloc ] initWithTensorMetadata: result.get ()]];
189189 }
190190 for (NSInteger index = 0 ; index < memoryPlannedBufferCount; ++index) {
191191 auto result = methodMeta.memory_planned_buffer_size (index);
@@ -221,16 +221,16 @@ - (nullable instancetype)initWithMethodMetadata:(const MethodMeta &)methodMeta
221221 return _outputValueTags;
222222}
223223
224- - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)inputTensorMetadatas {
225- return _inputTensorMetadatas ;
224+ - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)inputTensorMetadata {
225+ return _inputTensorMetadata ;
226226}
227227
228- - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)outputTensorMetadatas {
229- return _outputTensorMetadatas ;
228+ - (NSDictionary <NSNumber *,ExecuTorchTensorMetadata *> *)outputTensorMetadata {
229+ return _outputTensorMetadata ;
230230}
231231
232- - (NSArray <ExecuTorchTensorMetadata *> *)attributeTensorMetadatas {
233- return _attributeTensorMetadatas ;
232+ - (NSArray <ExecuTorchTensorMetadata *> *)attributeTensorMetadata {
233+ return _attributeTensorMetadata ;
234234}
235235
236236- (NSArray <NSNumber *> *)memoryPlannedBufferSizes {
0 commit comments