Fix bug: In dynamic mode, if start or end is negetive, __getitem__ return wrong result(#30003)
1. when slice_item is a slice: 1) the start of __getitem__ should be std::max(start, 0) if slice 2) the start of __getitem__ should be std::min(end, dim) 2. when slice_item is an integer, it should be in [-dim_len, dim_len) 3. Fix error message to use accurate data
Showing
想要评论请 注册 或 登录