File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- import TestsUtils
13
+ #if canImport(_Differentiation)
14
14
15
+ import TestsUtils
15
16
import _Differentiation
16
17
17
18
public let Differentiation = [
@@ -68,3 +69,5 @@ public func run_DifferentiationArraySum(N: Int) {
68
69
blackHole ( valueWithGradient ( at: onesArray, in: sum) )
69
70
}
70
71
}
72
+
73
+ #endif
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ import DictionaryOfAnyHashableStrings
69
69
import DictionaryRemove
70
70
import DictionarySubscriptDefault
71
71
import DictionarySwap
72
+ #if canImport(_Differentiation)
72
73
import Differentiation
74
+ #endif
73
75
import Diffing
74
76
import DiffingMyers
75
77
import DropFirst
@@ -259,7 +261,9 @@ registerBenchmark(DictionaryOfAnyHashableStrings)
259
261
registerBenchmark ( DictionaryRemove)
260
262
registerBenchmark ( DictionarySubscriptDefault)
261
263
registerBenchmark ( DictionarySwap)
264
+ #if canImport(_Differentiation)
262
265
registerBenchmark ( Differentiation)
266
+ #endif
263
267
registerBenchmark ( Diffing)
264
268
registerBenchmark ( DiffingMyers)
265
269
registerBenchmark ( DropFirst)
You can’t perform that action at this time.
0 commit comments