Skip to content

Commit 204eee9

Browse files
authored
Remove unused value tags from ObjC ExecuTorchValue (#13679)
1 parent 8d7cbc5 commit 204eee9

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchValue.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ typedef NS_ENUM(uint32_t, ExecuTorchValueTag) {
2222
ExecuTorchValueTagDouble,
2323
ExecuTorchValueTagInteger,
2424
ExecuTorchValueTagBoolean,
25-
ExecuTorchValueTagBooleanList,
26-
ExecuTorchValueTagDoubleList,
27-
ExecuTorchValueTagIntegerList,
28-
ExecuTorchValueTagTensorList,
29-
ExecuTorchValueTagScalarList,
30-
ExecuTorchValueTagOptionalTensorList,
3125
} NS_SWIFT_NAME(ValueTag);
3226

3327
typedef NSNumber *ExecuTorchScalarValue
@@ -107,7 +101,7 @@ __attribute__((objc_subclassing_restricted))
107101
*
108102
* @return An float representing the float value.
109103
*/
110-
@property(nonatomic, readonly) ExecuTorchFloatValue floatValue NS_SWIFT_NAME(float);
104+
@property(nonatomic, readonly) ExecuTorchFloatValue floatValue NS_SWIFT_NAME(float);
111105

112106
/**
113107
* Returns YES if the value is of type None.
@@ -166,7 +160,7 @@ __attribute__((objc_subclassing_restricted))
166160
*
167161
* @return A BOOL indicating whether the value is a float.
168162
*/
169-
@property(nonatomic, readonly) BOOL isFloat;
163+
@property(nonatomic, readonly) BOOL isFloat;
170164

171165
/**
172166
* Creates an instance encapsulating a Tensor.

extension/apple/ExecuTorch/Exported/ExecuTorchValue.mm

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,6 @@ static inline ExecuTorchValueTag deduceValueTag(NSNumber *number) {
4343
return @"integer";
4444
case ExecuTorchValueTagBoolean:
4545
return @"boolean";
46-
case ExecuTorchValueTagBooleanList:
47-
return @"boolean_list";
48-
case ExecuTorchValueTagDoubleList:
49-
return @"double_list";
50-
case ExecuTorchValueTagIntegerList:
51-
return @"integer_list";
52-
case ExecuTorchValueTagTensorList:
53-
return @"tensor_list";
54-
case ExecuTorchValueTagScalarList:
55-
return @"scalar_list";
56-
case ExecuTorchValueTagOptionalTensorList:
57-
return @"optional_tensor_list";
5846
}
5947
return @"undefined";
6048
}

0 commit comments

Comments
 (0)