Unverified Commit 1cb3e36a authored by Ye Liu's avatar Ye Liu Committed by GitHub
Browse files

Fix typo (#318)

parent 6875dcfe
...@@ -266,7 +266,7 @@ class BaseRunner(metaclass=ABCMeta): ...@@ -266,7 +266,7 @@ class BaseRunner(metaclass=ABCMeta):
policy_type = lr_config.pop('policy') policy_type = lr_config.pop('policy')
# If the type of policy is all in lower case, e.g., 'cyclic', # If the type of policy is all in lower case, e.g., 'cyclic',
# then its first letter will be capitalized, e.g., to be 'Cyclic'. # then its first letter will be capitalized, e.g., to be 'Cyclic'.
# This is for the convenient usage of Lr updater updater. # This is for the convenient usage of Lr updater.
# Since this is not applicable for `CosineAnealingLrUpdater`, # Since this is not applicable for `CosineAnealingLrUpdater`,
# the string will not be changed if it contains capital letters. # the string will not be changed if it contains capital letters.
if policy_type == policy_type.lower(): if policy_type == policy_type.lower():
......
...@@ -165,5 +165,5 @@ class Runner(EpochBasedRunner): ...@@ -165,5 +165,5 @@ class Runner(EpochBasedRunner):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
warnings.warn( warnings.warn(
'Runner was deprecated, please use DeprecationWarning instead') 'Runner was deprecated, please use EpochBasedRunner instead')
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment