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

Commit 75cadef

Browse files
committed
Remove redundant newValue and update comment about why field is optional.
1 parent d2578b3 commit 75cadef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/TensorFlow/Core/Runtime.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,11 +1205,14 @@ class _ThreadLocalState {
12051205
get {
12061206
_ThreadLocalState.local.lazyTensorEnabled ?? _RuntimeConfig.useLazyTensor
12071207
}
1208-
set(newValue) {
1208+
set {
12091209
_ThreadLocalState.local.lazyTensorEnabled = newValue
12101210
}
12111211
}
12121212

1213+
/// When true, use lazy evaluation. If this is not set, we should use the
1214+
/// value of `_RuntimeConfig.useLazyTensor` to determine if lazy evaluation
1215+
/// is enabled.
12131216
private var lazyTensorEnabled: Bool? = nil
12141217

12151218
private static let key: pthread_key_t = {

0 commit comments

Comments
 (0)