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

Commit 05a6e27

Browse files
committed
Extra bracket in one of the tests
1 parent 10f5ba4 commit 05a6e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/TensorFlowTests/OperatorTests/MathTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ final class MathOperatorTests: XCTestCase {
217217
func testSoftplus() {
218218
let x = Tensor<Float>([1.0, 2.0, 3.0])
219219
let y = softplus(x)
220-
let expected = Tensor<Float>([[1.3132616, 2.126928, 3.0485873]])
220+
let expected = Tensor<Float>([1.3132616, 2.126928, 3.0485873])
221221
XCTAssertEqual(x, expected)
222222
}
223223

224224
func testSoftsign() {
225225
let x = Tensor<Float>([1.0, 4.0, 3.0])
226226
let y = softsign(x)
227-
let expected = Tensor<Float>([0.5 , 0.8 , 0.75]])
227+
let expected = Tensor<Float>([0.5 , 0.8 , 0.75])
228228
XCTAssertEqual(x, expected)
229229
}
230230

0 commit comments

Comments
 (0)