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

Commit 36d7f1b

Browse files
authored
TensorFlow: silence a warning from the compiler (#1154)
Remove the associated type requirement which has been flagged by the compiler as being duplicate due to the standalone definition of the `VectorProtocol` type for supporting the standard toolchain.
1 parent 1c68f1d commit 36d7f1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TensorFlow/Core/VectorProtocol.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ extension _VectorProtocol {
7272
/// A type that represents an unranked vector space. Values of this type are
7373
/// elements in this vector space and have either no shape or a static shape.
7474
public protocol VectorProtocol: _VectorProtocol & AdditiveArithmetic {
75+
#if !TENSORFLOW_USE_STANDARD_TOOLCHAIN
7576
/// The type of scalars in the vector space.
7677
associatedtype VectorSpaceScalar = Float
78+
#endif
7779

7880
func adding(_ x: VectorSpaceScalar) -> Self
7981

0 commit comments

Comments
 (0)