Skip to content

Commit 38e4532

Browse files
authored
Update TensorTest.swift
1 parent 1af4089 commit 38e4532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/apple/ExecuTorch/__tests__/TensorTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ class TensorTest: XCTestCase {
183183

184184
func testWithUnsafeMutableBytesFloat16() throws {
185185
var data: [Float16] = [1, 2, 3, 4]
186-
let tensor = data.withUnsafeMutableBytes { buf in
187-
Tensor(bytes: buf.baseAddress!, shape: [4], dataType: .half)
186+
let tensor = data.withUnsafeMutableBytes { buffer in
187+
Tensor(bytes: buffer.baseAddress!, shape: [4], dataType: .half)
188188
}
189189
try tensor.withUnsafeMutableBytes { (buffer: UnsafeMutableBufferPointer<Float16>) in
190190
for i in buffer.indices {

0 commit comments

Comments
 (0)