Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
louen committed Oct 24, 2024
1 parent a26ab51 commit 1e56ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/MLXTests/MLXArrayTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ class MLXArrayTests: XCTestCase {
XCTAssertEqual(result.dType, .int32)
}
}

func testAsDataRoundTrip() {
let a = MLXArray(0 ..< 16, [4, 4])
let arrayData = a.asData(access: .copy)
let result = MLXArray(arrayData.data, arrayData.shape, dtype:arrayData.dType)
let result = MLXArray(arrayData.data, arrayData.shape, dtype: arrayData.dType)
assertEqual(a, result)
}

Expand Down

0 comments on commit 1e56ce2

Please sign in to comment.