Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 21e9a41

Browse files
committed
Updating test in mathtests
1 parent 56ac099 commit 21e9a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/TensorFlowTests/OperatorTests/MathTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ final class MathOperatorTests: XCTestCase {
6969
let x = Tensor<Float>([1, 2, 3, 4, 5, 6, 7, 8])
7070
let y = Tensor<Float>([0.5, 1, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0])
7171
let z = cosineSimilarity(x, y)
72-
XCTassertEqual(z, 1.0)
72+
assertEqual(z, 1.0, accuracy: 0.0001)
7373
}
7474

7575
// FIXME(https://bugs.swift.org/browse/TF-543): Disable failing test.

0 commit comments

Comments
 (0)