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

Commit d234be9

Browse files
committed
Disable lazy tensor on teardown.
1 parent 27f13d8 commit d234be9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/TensorFlowTests/LazyTensorEvaluationTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ final class LazyTensorEvaluationTests: XCTestCase {
2323
_RuntimeConfig.useLazyTensor = true
2424
}
2525

26+
override class func tearDown() {
27+
super.tearDown()
28+
_RuntimeConfig.useLazyTensor = false
29+
}
30+
2631
func testSimpleOperations() {
2732
let a = Tensor<Float>(10.0)
2833
let b = Tensor<Float>(2.0)

0 commit comments

Comments
 (0)