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

Commit ce2945d

Browse files
committed
Remove printRefCounts function and public spec.
1 parent f7eefd7 commit ce2945d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Sources/TensorFlow/LazyTensor/LazyTensorOperation.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,6 @@ class LazyTensor: _AnyTensorHandle {
104104
}
105105
}
106106

107-
static func printRefCounts() {
108-
let live = operationRefCounts.values.reduce(0, { (sum, element) in
109-
return sum + (element.liveRefCount > 0 ? 1 : 0)
110-
})
111-
print("LazyTensorOperations: \(operationRefCounts.count) (\(live) live)")
112-
}
113-
114107
static var _materializationCallback: (String) -> () = { _ in }
115108
}
116109

@@ -152,7 +145,7 @@ class LazyTensorOperation: TensorOperation {
152145
}
153146
}
154147

155-
public static var liveOperations: Int = 0
148+
static var liveOperations: Int = 0
156149

157150
init(_id id: String?, name: String, outputCount: Int) {
158151
self.name = name

0 commit comments

Comments
 (0)