Created by: songyouwei
- 优化了动态图
Variable.__getitem__的性能- 调整至cpp端实现,耗时减少约40%
- 支持step为-1以及其他负数,
start/end可以不为None - 优化了
strided_sliceop,支持step为负数且end省略时的特殊情况,可避免额外的reverse- 如
::-1,start会解析为length-1,end会解析为-1(see cpython impl)
- 如
Created by: songyouwei
Variable.__getitem__的性能
start/end可以不为None
strided_sliceop,支持step为负数且end省略时的特殊情况,可避免额外的reverse
::-1,start会解析为length-1,end会解析为-1(see cpython impl)