File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
branches/tensorflow-merge/stdlib/public/TensorFlow Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1379,7 +1379,7 @@ refs/heads/chase-my-tail: 8bb91443a9e81bbfac92a2621a0af887a1da8dbf
1379
1379
refs/heads/consider-outer-alternatives: 708bac749ec60a22a79e2eefbe734f9488a7370d
1380
1380
refs/heads/revert-25740-oops-i-linked-it-again: fdd41aeb682fc488572bdc1cf71b2ff6997ba576
1381
1381
refs/heads/swift-5.1-branch-06-12-2019: e63b7b2d3b93c48232d386099d0ec525d21d8f8d
1382
- refs/heads/tensorflow-merge: cbad7aac3a6d6edb321919ae39f6353429d7f820
1382
+ refs/heads/tensorflow-merge: c6a98b121f7a0bfb0aac89d328f1ba3b8162200d
1383
1383
refs/heads/update-checkout-sha-info: 5832743c5c2a842976c42a508a4c6dcceefb0aef
1384
1384
refs/tags/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-12-a: 228f0448d9bb909aacbba4afcb7c600a405d15da
1385
1385
refs/tags/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a: 922861a77b5fc2bf46bc917da70ceb15eef76836
Original file line number Diff line number Diff line change @@ -536,10 +536,12 @@ public extension Tensor where Scalar : Numeric {
536
536
@_inlineable @inline ( __always)
537
537
init ( oneHotAtIndices indices: Tensor < Int32 > , depth: Int32 ,
538
538
onValue: Scalar = 1 , offValue: Scalar = 0 , axis: Int = - 1 ) {
539
- self . init (
540
- handle: #tfop( " OneHot " , indices, Tensor < Int32 > ( depth) ,
541
- Tensor ( onValue) , Tensor ( offValue) ,
542
- axis: axis, T: Scalar . self, TI: Int32 . self)
539
+ self = Raw . oneHot (
540
+ indices: indices,
541
+ depth: Tensor < Int32 > ( depth) ,
542
+ onValue: Tensor ( onValue) ,
543
+ offValue: Tensor ( offValue) ,
544
+ axis: Int64 ( axis)
543
545
)
544
546
}
545
547
}
You can’t perform that action at this time.
0 commit comments