Browse Source

fix api doc

tags/v1.5.0-rc1
liyong 4 years ago
parent
commit
261aa30eea
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      mindspore/dataset/vision/c_transforms.py
  2. +1
    -1
      mindspore/mindrecord/tools/tfrecord_to_mr.py

+ 2
- 2
mindspore/dataset/vision/c_transforms.py View File

@@ -1591,9 +1591,9 @@ class SlicePatches(ImageTensorOperation):
num_height (int, optional): The number of patches in vertical 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


+ 1
- 1
mindspore/mindrecord/tools/tfrecord_to_mr.py View File

@@ -71,7 +71,7 @@ class TFRecordToMR:
source (str): the TFRecord file to be transformed.
destination (str): the MindRecord file path to transform into.
feature_dict (dict): a dictionary that states the feature type, and
`VarLenFeature` is not supported.
`VarLenFeature` is not supported.
bytes_fields (list, optional): the bytes fields which are in `feature_dict` and can be images bytes.

Raises:


Loading…
Cancel
Save