forked from mindspore-Ecosystem/mindspore
fix: api example
This commit is contained in:
parent
ca6da6751f
commit
90a4e1205a
|
@ -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))
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue