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

Commit 3536ee3

Browse files
authored
class -> AnyObject protocol constraint. (#1136)
1 parent 47ebf6c commit 3536ee3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/TensorFlow/Core/TensorHandle.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ import CTensorFlow
1818
/// that conforms to this protocol can be used as a `TensorHandle` in the
1919
/// `TensorFlow` library, as it much provide a way to convert the underlying tensor
2020
/// 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 {
21+
public protocol _AnyTensorHandle: AnyObject {
2422
var _tfeTensorHandle: TFETensorHandle { get }
2523
var rank: Int { get }
2624
var shape: TensorShape { get }

0 commit comments

Comments
 (0)