Skip to content

Commit d080dd0

Browse files
rxweiRicardo Ocampo
authored andcommitted
Remove APIs that were deprecated in 0.5. (tensorflow#516)
Now that 0.5 has been released, we remove whatever's marked with "This API will be removed after Swift for TensorFlow 0.5." for a future release.
1 parent 1b4f825 commit d080dd0

File tree

1 file changed

+0
-96
lines changed

1 file changed

+0
-96
lines changed

Sources/TensorFlow/BackwardsCompatibility.swift

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -146,99 +146,3 @@ public func sigmoidCrossEntropy<Scalar: TensorFlowFloatingPoint>(
146146
) -> Tensor<Scalar> {
147147
sigmoidCrossEntropy(logits: logits, labels:labels, reduction: _mean)
148148
}
149-
150-
//===------------------------------------------------------------------------------------------===//
151-
// Tensor comparison operators
152-
//===------------------------------------------------------------------------------------------===//
153-
154-
extension Tensor where Scalar: Numeric & Comparable {
155-
/// Returns a Boolean value indicating whether the results of element-wise comparison
156-
/// `lhs .< rhs` are all `true`.
157-
@inlinable
158-
@available(*, deprecated, message: """
159-
This API will be removed after Swift for TensorFlow 0.5.
160-
Use `(lhs .< rhs).all()` instead.
161-
""")
162-
public static func < (lhs: Tensor, rhs: Tensor) -> Bool {
163-
return (lhs .< rhs).all()
164-
}
165-
166-
/// Returns a Boolean value indicating whether the results of element-wise comparison
167-
/// `lhs .<= rhs` are all `true`.
168-
@inlinable
169-
@available(*, deprecated, message: """
170-
This API will be removed after Swift for TensorFlow 0.5.
171-
Use `(lhs .<= rhs).all()` instead.
172-
""")
173-
public static func <= (lhs: Tensor, rhs: Tensor) -> Bool {
174-
return (lhs .<= rhs).all()
175-
}
176-
177-
/// Returns a Boolean value indicating whether the results of element-wise comparison
178-
/// `lhs .> rhs` are all `true`.
179-
@inlinable
180-
@available(*, deprecated, message: """
181-
This API will be removed after Swift for TensorFlow 0.5.
182-
Use `(lhs .> rhs).all()` instead.
183-
""")
184-
public static func > (lhs: Tensor, rhs: Tensor) -> Bool {
185-
return (lhs .> rhs).all()
186-
}
187-
188-
/// Returns a Boolean value indicating whether the results of element-wise comparison
189-
/// `lhs .>= rhs` are all `true`.
190-
@inlinable
191-
@available(*, deprecated, message: """
192-
This API will be removed after Swift for TensorFlow 0.5.
193-
Use `(lhs .>= rhs).all()` instead.
194-
""")
195-
public static func >= (lhs: Tensor, rhs: Tensor) -> Bool {
196-
return (lhs .>= rhs).all()
197-
}
198-
}
199-
200-
public extension Tensor where Scalar: Numeric & Comparable {
201-
/// Returns a Boolean value indicating whether all scalars in the first argument are less than
202-
/// the second argument.
203-
@inlinable
204-
@available(*, deprecated, message: """
205-
This API will be removed after Swift for TensorFlow 0.5.
206-
Use `(lhs .< rhs).all()` instead.
207-
""")
208-
static func < (lhs: Tensor, rhs: Scalar) -> Bool {
209-
return (lhs .< rhs).all()
210-
}
211-
212-
/// Returns a Boolean value indicating whether all scalars in the first argument are less than
213-
/// or equal to the second argument.
214-
@inlinable
215-
@available(*, deprecated, message: """
216-
This API will be removed after Swift for TensorFlow 0.5.
217-
Use `(lhs .<= rhs).all()` instead.
218-
""")
219-
static func <= (lhs: Tensor, rhs: Scalar) -> Bool {
220-
return (lhs .<= rhs).all()
221-
}
222-
223-
/// Returns a Boolean value indicating whether all scalars in the first argument are greater than
224-
/// the second argument.
225-
@inlinable
226-
@available(*, deprecated, message: """
227-
This API will be removed after Swift for TensorFlow 0.5.
228-
Use `(lhs .> rhs).all()` instead.
229-
""")
230-
static func > (lhs: Tensor, rhs: Scalar) -> Bool {
231-
return (lhs .> rhs).all()
232-
}
233-
234-
/// Returns a Boolean value indicating whether all scalars in the first argument are greater than
235-
/// or equal to the second argument.
236-
@inlinable
237-
@available(*, deprecated, message: """
238-
This API will be removed after Swift for TensorFlow 0.5.
239-
Use `(lhs .>= rhs).all()` instead.
240-
""")
241-
static func >= (lhs: Tensor, rhs: Scalar) -> Bool {
242-
return (lhs .>= rhs).all()
243-
}
244-
}

0 commit comments

Comments
 (0)