fix: api example

This commit is contained in:
jonyguo 2020-07-22 10:18:15 +08:00
parent ca6da6751f
commit 90a4e1205a
1 changed files with 3 additions and 3 deletions

View File

@ -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))
"""