This repository was archived by the owner on Jul 7, 2023. It is now read-only.
Commit 9c6402b
Replace one_hot + matmul with tf.gather on R1 indices for faster gather operation.
PiperOrigin-RevId: 2215138871 parent 7ae4c7f commit 9c6402b
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | 277 | | |
281 | | - | |
| 278 | + | |
282 | 279 | | |
283 | 280 | | |
284 | 281 | | |
| |||
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
355 | | - | |
| 352 | + | |
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
| |||
0 commit comments