Skip to content

Commit 73dc30b

Browse files
authored
Mark remaining clases final in ObjC bindings.
Differential Revision: D83382356 Pull Request resolved: #14634
1 parent d5c29ff commit 73dc30b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchLog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ NS_SWIFT_NAME(LogSink)
4949
* A singleton class for managing log sinks and dispatching log messages.
5050
*/
5151
NS_SWIFT_NAME(Log)
52+
__attribute__((objc_subclassing_restricted))
5253
@interface ExecuTorchLog : NSObject
5354

5455
/// The shared singleton log instance.

extension/apple/ExecuTorch/Exported/ExecuTorchModule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
1616
* and its debug name.
1717
*/
1818
NS_SWIFT_NAME(TensorMetadata)
19+
__attribute__((objc_subclassing_restricted))
1920
@interface ExecuTorchTensorMetadata : NSObject
2021

2122
/** The size of each dimension. */
@@ -46,6 +47,7 @@ NS_SWIFT_NAME(TensorMetadata)
4647
* per-tensor metadata, buffer sizes, backends, and instruction count.
4748
*/
4849
NS_SWIFT_NAME(MethodMetadata)
50+
__attribute__((objc_subclassing_restricted))
4951
@interface ExecuTorchMethodMetadata : NSObject
5052

5153
/** The method’s name. */

0 commit comments

Comments
 (0)