forked from mindspore-Ecosystem/mindspore
!32552 modify doc
Merge pull request !32552 from xumengjuan1/code_docs_x19
This commit is contained in:
commit
9be89d1b2a
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue