From 85988e24494901b3199039a198f0bf54995bed85 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 25 Aug 2025 22:32:19 -0700 Subject: [PATCH 1/2] Remove unused value tags from ObjC ExecuTorchValue --- extension/apple/ExecuTorch/Exported/ExecuTorchValue.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/extension/apple/ExecuTorch/Exported/ExecuTorchValue.h b/extension/apple/ExecuTorch/Exported/ExecuTorchValue.h index 31fb1b96cbf..6070d25383c 100644 --- a/extension/apple/ExecuTorch/Exported/ExecuTorchValue.h +++ b/extension/apple/ExecuTorch/Exported/ExecuTorchValue.h @@ -22,12 +22,6 @@ typedef NS_ENUM(uint32_t, ExecuTorchValueTag) { ExecuTorchValueTagDouble, ExecuTorchValueTagInteger, ExecuTorchValueTagBoolean, - ExecuTorchValueTagBooleanList, - ExecuTorchValueTagDoubleList, - ExecuTorchValueTagIntegerList, - ExecuTorchValueTagTensorList, - ExecuTorchValueTagScalarList, - ExecuTorchValueTagOptionalTensorList, } NS_SWIFT_NAME(ValueTag); typedef NSNumber *ExecuTorchScalarValue @@ -107,7 +101,7 @@ __attribute__((objc_subclassing_restricted)) * * @return An float representing the float value. */ - @property(nonatomic, readonly) ExecuTorchFloatValue floatValue NS_SWIFT_NAME(float); +@property(nonatomic, readonly) ExecuTorchFloatValue floatValue NS_SWIFT_NAME(float); /** * Returns YES if the value is of type None. @@ -166,7 +160,7 @@ __attribute__((objc_subclassing_restricted)) * * @return A BOOL indicating whether the value is a float. */ - @property(nonatomic, readonly) BOOL isFloat; +@property(nonatomic, readonly) BOOL isFloat; /** * Creates an instance encapsulating a Tensor. From 08eca7249aa3de8f1ee8b33664e6db772a4f4f76 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Mon, 25 Aug 2025 22:38:49 -0700 Subject: [PATCH 2/2] Remove unused ExecuTorchValueTag cases --- .../apple/ExecuTorch/Exported/ExecuTorchValue.mm | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/extension/apple/ExecuTorch/Exported/ExecuTorchValue.mm b/extension/apple/ExecuTorch/Exported/ExecuTorchValue.mm index 04f1890e29e..293cce03819 100644 --- a/extension/apple/ExecuTorch/Exported/ExecuTorchValue.mm +++ b/extension/apple/ExecuTorch/Exported/ExecuTorchValue.mm @@ -43,18 +43,6 @@ static inline ExecuTorchValueTag deduceValueTag(NSNumber *number) { return @"integer"; case ExecuTorchValueTagBoolean: return @"boolean"; - case ExecuTorchValueTagBooleanList: - return @"boolean_list"; - case ExecuTorchValueTagDoubleList: - return @"double_list"; - case ExecuTorchValueTagIntegerList: - return @"integer_list"; - case ExecuTorchValueTagTensorList: - return @"tensor_list"; - case ExecuTorchValueTagScalarList: - return @"scalar_list"; - case ExecuTorchValueTagOptionalTensorList: - return @"optional_tensor_list"; } return @"undefined"; }