Skip to content

Commit 3dd72b9

Browse files
shoumikhinkirklandsign
authored andcommitted
Enum for Value tag.
Differential Revision: D71752747 Pull Request resolved: #9608
1 parent 753eab0 commit 3dd72b9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchValue.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010

1111
NS_ASSUME_NONNULL_BEGIN
1212

13+
/**
14+
* Enum to define the dynamic type of a Value.
15+
* Values can be a subset, but must numerically match exactly those defined in
16+
* runtime/core/tag.h
17+
*/
18+
typedef NS_ENUM(uint32_t, ExecuTorchValueTag) {
19+
ExecuTorchValueTagNone,
20+
ExecuTorchValueTagTensor,
21+
ExecuTorchValueTagString,
22+
ExecuTorchValueTagDouble,
23+
ExecuTorchValueTagInteger,
24+
ExecuTorchValueTagBoolean,
25+
ExecuTorchValueTagBooleanList,
26+
ExecuTorchValueTagDoubleList,
27+
ExecuTorchValueTagIntegerList,
28+
ExecuTorchValueTagTensorList,
29+
ExecuTorchValueTagScalarList,
30+
ExecuTorchValueTagOptionalTensorList,
31+
} NS_SWIFT_NAME(ValueTag);
32+
1333
NS_SWIFT_NAME(Value)
1434
__attribute__((deprecated("This API is experimental.")))
1535
@interface ExecuTorchValue : NSObject

0 commit comments

Comments
 (0)