Merge pull request !32552 from xumengjuan1/code_docs_x19
This commit is contained in:
i-robot 2022-04-06 08:40:48 +00:00 committed by Gitee
commit 9be89d1b2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 9 deletions

View File

@ -97,8 +97,9 @@ DEFAULT_BACKEND = Backend("hccl")
class GlobalComm:
"""
World communication information. The GlobalComm is a global class. The members contain:
BACKEND: The communication library used, using HCCL/NCCL.
WORLD_COMM_GROUP: Global communication domain.
- BACKEND: The communication library used, using HCCL/NCCL.
- WORLD_COMM_GROUP: Global communication domain.
"""
BACKEND = DEFAULT_BACKEND
WORLD_COMM_GROUP = HCCL_WORLD_COMM_GROUP

View File

@ -878,12 +878,12 @@ class RandomAffine(py_transforms.PyTensorOperation):
shear (Union[float, Sequence[float, float], Sequence[float, float, float, float]], optional):
Range of shear factor to select from.
If float is provided, a shearing parallel to X axis with a factor selected from
(-`shear`, `shear`) will be applied.
(- `shear` , `shear` ) will be applied.
If Sequence[float, float] is provided, a shearing parallel to X axis with a factor selected
from (`shear`[0], `shear`[1]) will be applied.
from ( `shear` [0], `shear` [1]) will be applied.
If Sequence[float, float, float, float] is provided, a shearing parallel to X axis with a factor selected
from (`shear`[0], `shear`[1]) and a shearing parallel to Y axis with a factor selected from
(`shear`[2], `shear`[3]) will be applied. Default: None, means no shearing.
from ( `shear` [0], `shear` [1]) and a shearing parallel to Y axis with a factor selected from
( `shear` [2], `shear` [3]) will be applied. Default: None, means no shearing.
resample (Inter, optional): Method of interpolation. It can be Inter.BILINEAR, Inter.NEAREST
or Inter.BICUBIC. If the input PIL Image is in mode of "1" or "P", Inter.NEAREST will be
used directly. Default: Inter.NEAREST.

View File

@ -75,7 +75,7 @@ class TFRecordToMR:
source (str): TFRecord file to be transformed.
destination (str): MindRecord file path to transform into, ensure that no file with the same name
exists in the directory.
feature_dict (dict[str, `FixedLenFeature <https://www.tensorflow.org/api_docs/python/tf/io/FixedLenFeature>`_ ]): Dictionary
feature_dict (dict[str, `FixedLenFeature <https://www.tensorflow.org/api_docs/python/tf/io/FixedLenFeature>`_]): Dictionary
that states the feature type, and `VarLenFeature <https://www.tensorflow.org/api_docs/python/tf/io/VarLenFeature>`_
is not supported.
bytes_fields (list[str], optional): The bytes fields which are in `feature_dict` and can be images bytes.

View File

@ -748,8 +748,8 @@ class LogUniformCandidateSampler(PrimitiveWithInfer):
Outputs:
Tuple of 3 Tensors.
- **sampled_candidates** (Tensor) - A Tensor with shape :math:`(num\_sampled,)` and
the same type as `true_classes`.
- **sampled_candidates** (Tensor) - A Tensor with shape :math:`(num\_sampled,)`
and the same type as `true_classes`.
- **true_expected_count** (Tensor) - A Tensor with the same shape as `true_classes and` type float32.
- **sampled_expected_count** (Tensor) - A Tensor with the same shape as `sampled_candidates` and type float32.