Skip to content

Commit 0aafb9a

Browse files
authored
Update ExecuTorch+Tensor.swift
1 parent 946e456 commit 0aafb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorch+Tensor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public extension Tensor {
5454
func withUnsafeBytes<T: Scalar, R>(_ body: (UnsafeBufferPointer<T>) throws -> R) throws -> R {
5555
guard dataType == T.dataType else { throw Error(code: .invalidArgument) }
5656
var result: Result<R, Error>?
57-
bytes { pointer, count, _ in
57+
__bytes { pointer, count, _ in
5858
result = Result { try body(
5959
UnsafeBufferPointer(
6060
start: pointer.assumingMemoryBound(to: T.self),
@@ -74,7 +74,7 @@ public extension Tensor {
7474
func withUnsafeMutableBytes<T: Scalar, R>(_ body: (UnsafeMutableBufferPointer<T>) throws -> R) throws -> R {
7575
guard dataType == T.dataType else { throw Error(code: .invalidArgument) }
7676
var result: Result<R, Error>?
77-
mutableBytes { pointer, count, _ in
77+
__mutableBytes { pointer, count, _ in
7878
result = Result { try body(
7979
UnsafeMutableBufferPointer(
8080
start: pointer.assumingMemoryBound(to: T.self),

0 commit comments

Comments
 (0)