We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ebf6c commit 3536ee3Copy full SHA for 3536ee3
Sources/TensorFlow/Core/TensorHandle.swift
@@ -18,9 +18,7 @@ import CTensorFlow
18
/// that conforms to this protocol can be used as a `TensorHandle` in the
19
/// `TensorFlow` library, as it much provide a way to convert the underlying tensor
20
/// handle into a `ConcreteTensorHandle`, which wraps a `TFE_TensorHandle *`
21
-/// TODO(https://bugs.swift.org/browse/TF-527): This is defined as a class-bound
22
-// protocol to workaround bug TF-527. When it is fixed, we should remove `: class`.
23
-public protocol _AnyTensorHandle: class {
+public protocol _AnyTensorHandle: AnyObject {
24
var _tfeTensorHandle: TFETensorHandle { get }
25
var rank: Int { get }
26
var shape: TensorShape { get }
0 commit comments