Commit f5bbf09
Use
This ensures that tensors in the output state have the same static shape as tensors in the input state. Before this change the equivalence is only guaranteed for the dynamic shape.
PiperOrigin-RevId: 480168486tf.slice instead of tf.strided_slice (via tf.Tensor.__getitem__ / indexing syntax) for state tensors.1 parent 2934dfe commit f5bbf09
File tree
2 files changed
+13
-8
lines changed- lingvo/core
2 files changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2271 | 2271 | | |
2272 | 2272 | | |
2273 | 2273 | | |
2274 | | - | |
| 2274 | + | |
| 2275 | + | |
2275 | 2276 | | |
2276 | 2277 | | |
2277 | 2278 | | |
| |||
2664 | 2665 | | |
2665 | 2666 | | |
2666 | 2667 | | |
2667 | | - | |
2668 | | - | |
2669 | | - | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
2670 | 2671 | | |
2671 | | - | |
2672 | | - | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
2673 | 2676 | | |
2674 | 2677 | | |
2675 | 2678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
| 600 | + | |
600 | 601 | | |
601 | 602 | | |
602 | 603 | | |
| |||
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
776 | | - | |
| 777 | + | |
| 778 | + | |
777 | 779 | | |
778 | 780 | | |
779 | 781 | | |
| |||
0 commit comments