Skip to content

Commit 4dc82b9

Browse files
authored
Add NS_NOESCAPE attributes to Tensor getters
1 parent ee64dc6 commit 4dc82b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchTensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ __attribute__((deprecated("This API is experimental.")))
175175
* - the total number of elements,
176176
* - and the data type.
177177
*/
178-
- (void)bytesWithHandler:(void (^)(const void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
178+
- (void)bytesWithHandler:(NS_NOESCAPE void (^)(const void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
179179
NS_SWIFT_NAME(bytes(_:));
180180

181181
/**
@@ -186,7 +186,7 @@ __attribute__((deprecated("This API is experimental.")))
186186
* - the total number of elements,
187187
* - and the data type.
188188
*/
189-
- (void)mutableBytesWithHandler:(void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
189+
- (void)mutableBytesWithHandler:(NS_NOESCAPE void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
190190
NS_SWIFT_NAME(mutableBytes(_:));
191191

192192
/**

0 commit comments

Comments
 (0)