Skip to content

Commit 0461242

Browse files
rxweidan-zheng
authored andcommitted
---
yaml --- r: 284151 b: refs/heads/tensorflow c: fbd3663 h: refs/heads/master i: 284149: 730e2ec 284147: 8aa854b 284143: e2460e7
1 parent c0d799d commit 0461242

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: baee2067ecadfb066df1437d6a1ff88026aeae9b
819+
refs/heads/tensorflow: fbd36635bb1ede265a40ddeabd300115f6d439d4
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/stdlib/public/TensorFlow/Ops.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -979,26 +979,6 @@ public func logSoftmax<T : FloatingPoint>(_ x: Tensor<T>) -> Tensor<T> {
979979
// Selection
980980
//===----------------------------------------------------------------------===//
981981

982-
public extension Tensor where Scalar == Bool {
983-
/// Returns a new tensor containing elements from either `left` or `right`,
984-
/// depending on the elements of `self`.
985-
///
986-
/// `self` acts as a mask that chooses, based on the value at each scalar,
987-
/// whether the corresponding scalar in the output should be taken from
988-
/// `left` (if `true`) or `right` (if `false`).
989-
///
990-
/// - Precondition: `left` and `right` must have the same shape. If
991-
/// `left` and `right` are scalar, then `self` must also be scalar. If
992-
/// `left` and `right` have rank greater than or equal to 1, then `self`
993-
/// must be either have the same shape as `left` or be a 1-D `Tensor` such
994-
/// that `self.scalarCount == left[0]`.
995-
@available(*, deprecated, message: "Use '.replacing(with:mask:)' instead")
996-
@inlinable
997-
func selecting<T>(_ left: Tensor<T>, _ right: Tensor<T>) -> Tensor<T> {
998-
return left.replacing(with: right, where: self)
999-
}
1000-
}
1001-
1002982
public extension Tensor {
1003983
/// Replaces elements of this tensor with `other` in the lanes where `mask` is
1004984
/// `true`.

0 commit comments

Comments
 (0)