提交 b4547adb 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!3306 fix api example

Merge pull request !3306 from guozhijian/fix_api_example
......@@ -754,9 +754,9 @@ class RandomSelectSubpolicy(cde.RandomSelectSubpolicyOp):
policy (list(list(tuple(TensorOp,float))): List of sub-policies to choose from.
Examples:
>>> policy = [[(c_vision.RandomRotation((45, 45))), (c_transforms.RandomVerticalFlip()),
>>> (c_transforms.RandomColorAdjust())],
>>> [(c_vision.RandomRotation((90, 90))), (c_transforms.RandomColorAdjust())]]
>>> policy = [[(c_vision.RandomRotation((45, 45)), 0.5), (c_transforms.RandomVerticalFlip(), 1),
>>> (c_transforms.RandomColorAdjust(), 0.8)],
>>> [(c_vision.RandomRotation((90, 90)), 1), (c_transforms.RandomColorAdjust(), 0.2)]]
>>> ds_policy = ds.map(input_columns=["image"], operations=visions.RandomSelectSubpolicy(policy))
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册