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 datarevert-31562-mean
parent
4d2a4bb27a
commit
9922bd4125
Loading…
Reference in new issue