File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed
branches/tensorflow/stdlib/public/TensorFlow Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816
816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817
817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818
818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819
- refs/heads/tensorflow: baee2067ecadfb066df1437d6a1ff88026aeae9b
819
+ refs/heads/tensorflow: fbd36635bb1ede265a40ddeabd300115f6d439d4
820
820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821
821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822
822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2
Original file line number Diff line number Diff line change @@ -979,26 +979,6 @@ public func logSoftmax<T : FloatingPoint>(_ x: Tensor<T>) -> Tensor<T> {
979
979
// Selection
980
980
//===----------------------------------------------------------------------===//
981
981
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
-
1002
982
public extension Tensor {
1003
983
/// Replaces elements of this tensor with `other` in the lanes where `mask` is
1004
984
/// `true`.
You can’t perform that action at this time.
0 commit comments