Skip to content

Commit b5a60c1

Browse files
committed
---
yaml --- r: 311263 b: refs/heads/tensorflow-merge c: c6a98b1 h: refs/heads/master i: 311261: 8a85446 311259: 8481a06 311255: 4bbf959 311247: 96f08ce 311231: 28636ac
1 parent 1c2b702 commit b5a60c1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ refs/heads/chase-my-tail: 8bb91443a9e81bbfac92a2621a0af887a1da8dbf
13791379
refs/heads/consider-outer-alternatives: 708bac749ec60a22a79e2eefbe734f9488a7370d
13801380
refs/heads/revert-25740-oops-i-linked-it-again: fdd41aeb682fc488572bdc1cf71b2ff6997ba576
13811381
refs/heads/swift-5.1-branch-06-12-2019: e63b7b2d3b93c48232d386099d0ec525d21d8f8d
1382-
refs/heads/tensorflow-merge: cbad7aac3a6d6edb321919ae39f6353429d7f820
1382+
refs/heads/tensorflow-merge: c6a98b121f7a0bfb0aac89d328f1ba3b8162200d
13831383
refs/heads/update-checkout-sha-info: 5832743c5c2a842976c42a508a4c6dcceefb0aef
13841384
refs/tags/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-12-a: 228f0448d9bb909aacbba4afcb7c600a405d15da
13851385
refs/tags/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-14-a: 922861a77b5fc2bf46bc917da70ceb15eef76836

branches/tensorflow-merge/stdlib/public/TensorFlow/Tensor.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,12 @@ public extension Tensor where Scalar : Numeric {
536536
@_inlineable @inline(__always)
537537
init(oneHotAtIndices indices: Tensor<Int32>, depth: Int32,
538538
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)
543545
)
544546
}
545547
}

0 commit comments

Comments
 (0)