From 5417d9f3e52bb507f9738bc1b81dc4a2306f438b Mon Sep 17 00:00:00 2001 From: hesham Date: Mon, 24 Aug 2020 13:36:52 -0400 Subject: [PATCH] Fix sliceOp API --- mindspore/dataset/transforms/c_transforms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/dataset/transforms/c_transforms.py b/mindspore/dataset/transforms/c_transforms.py index f4b7cde1faa..107fd154386 100644 --- a/mindspore/dataset/transforms/c_transforms.py +++ b/mindspore/dataset/transforms/c_transforms.py @@ -85,6 +85,7 @@ class Slice(cde.SliceOp): slices(Union[int, list(int), slice, None, Ellipses]): Maximum `n` number of arguments to slice a tensor of rank `n`. One object in slices can be one of: + 1. :py:obj:`int`: Slice this index only. Negative index is supported. 2. :py:obj:`list(int)`: Slice these indices ion the list only. Negative indices are supported. 3. :py:obj:`slice`: Slice the generated indices from the slice object. Similar to `start:stop:step`.