File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
extension/apple/ExecuTorch/Exported Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ __attribute__((deprecated("This API is experimental.")))
175
175
* - the total number of elements,
176
176
* - and the data type.
177
177
*/
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
179
179
NS_SWIFT_NAME(bytes(_:));
180
180
181
181
/* *
@@ -186,7 +186,7 @@ __attribute__((deprecated("This API is experimental.")))
186
186
* - the total number of elements,
187
187
* - and the data type.
188
188
*/
189
- - (void )mutableBytesWithHandler:(void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
189
+ - (void )mutableBytesWithHandler:(NS_NOESCAPE void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler
190
190
NS_SWIFT_NAME(mutableBytes(_:));
191
191
192
192
/* *
Original file line number Diff line number Diff line change @@ -100,12 +100,12 @@ - (NSInteger)count {
100
100
return _tensor->numel ();
101
101
}
102
102
103
- - (void )bytesWithHandler : (void (^)(const void *pointer, NSInteger count, ExecuTorchDataType type))handler {
103
+ - (void )bytesWithHandler : (NS_NOESCAPE void (^)(const void *pointer, NSInteger count, ExecuTorchDataType type))handler {
104
104
ET_CHECK (handler);
105
105
handler (_tensor->unsafeGetTensorImpl ()->data (), self.count , self.dataType );
106
106
}
107
107
108
- - (void )mutableBytesWithHandler : (void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler {
108
+ - (void )mutableBytesWithHandler : (NS_NOESCAPE void (^)(void *pointer, NSInteger count, ExecuTorchDataType dataType))handler {
109
109
ET_CHECK (handler);
110
110
handler (_tensor->unsafeGetTensorImpl ()->mutable_data (), self.count , self.dataType );
111
111
}
You can’t perform that action at this time.
0 commit comments