fix api doc

This commit is contained in:
liyong 2021-08-24 11:02:24 +08:00
parent ac15f3f551
commit 261aa30eea
2 changed files with 3 additions and 3 deletions

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

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: