From fb7c9a6d09140c1bf6476bd90b4003ca49a10738 Mon Sep 17 00:00:00 2001 From: liyong Date: Fri, 30 Jul 2021 15:09:24 +0800 Subject: [PATCH] fix api issue --- mindspore/dataset/vision/c_transforms.py | 6 +++--- mindspore/mindrecord/filewriter.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mindspore/dataset/vision/c_transforms.py b/mindspore/dataset/vision/c_transforms.py index cf81b39ca9e..fd6e1a0c2a5 100644 --- a/mindspore/dataset/vision/c_transforms.py +++ b/mindspore/dataset/vision/c_transforms.py @@ -1557,11 +1557,11 @@ class SlicePatches(ImageTensorOperation): Args: num_height (int, optional): The number of patches in vertical direction (default=1). - num_height (int, optional): The number of patches in horizontal direction (default=1). + num_width (int, optional): The number of patches in horizontal direction (default=1). slice_mode (Inter mode, optional): An mode represents pad or drop (default=SliceMode.PAD). - It can be any of [SliceMode.PAD, SliceMode.DROP]. + It can be any of [SliceMode.PAD, SliceMode.DROP]. fill_value (int, optional): The border width in number of pixels in - right and bottom direction if slice_mode is set to be SliceMode.PAD (default=0). + right and bottom direction if slice_mode is set to be SliceMode.PAD (default=0). Examples: >>> # default padding mode diff --git a/mindspore/mindrecord/filewriter.py b/mindspore/mindrecord/filewriter.py index 76f6f092473..159de2619e5 100644 --- a/mindspore/mindrecord/filewriter.py +++ b/mindspore/mindrecord/filewriter.py @@ -37,7 +37,7 @@ class FileWriter: Note: After the MindRecord file is generated, if the file name is changed, - the file may fail to be read. + the file may fail to be read. Args: file_name (str): File name of MindRecord file.