转https://www.jianshu.com/p/71e6ef6c121b
This operation extracts a slice of size `size` from a tensor `input` starting at the location specified by `begin`. The slice `size` is represented as tensor shape, where `size[i]` is the number of elements of the 'i'th dimension of `input` that you want to slice. The starting location (`begin`) for the slice is represented as an offset in each dimension of `input`. In other words, `begin[i]` is the offset into the 'i'th dimension of `input` that you want to slice from.

本文深入解析了张量切片操作,详细介绍了如何从输入张量中指定开始位置和大小来提取特定部分。切片大小由张量形状表示,而开始位置则作为输入张量各维度的偏移量。

4869

被折叠的 条评论
为什么被折叠?



