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

Commit

Permalink
TensorFlow: silence a warning from the compiler (#1154)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
compnerd authored Dec 16, 2020
1 parent 1c68f1d commit 36d7f1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/TensorFlow/Core/VectorProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ extension _VectorProtocol {
/// A type that represents an unranked vector space. Values of this type are
/// elements in this vector space and have either no shape or a static shape.
public protocol VectorProtocol: _VectorProtocol & AdditiveArithmetic {
#if !TENSORFLOW_USE_STANDARD_TOOLCHAIN
/// The type of scalars in the vector space.
associatedtype VectorSpaceScalar = Float
#endif

func adding(_ x: VectorSpaceScalar) -> Self

Expand Down

0 comments on commit 36d7f1b

Please # to comment.