diff --git a/paddle/parameter/ParameterUpdaterHook.cpp b/paddle/parameter/ParameterUpdaterHook.cpp index 968803fc0f0b81cfdea269423d99b8282b7fcc38..c8b47687f5d3c00f6609b858103a5fec526b970a 100644 --- a/paddle/parameter/ParameterUpdaterHook.cpp +++ b/paddle/parameter/ParameterUpdaterHook.cpp @@ -32,7 +32,7 @@ namespace paddle { /** * The static pruning hook * Static means user specify a sparsity_ratio before training started, and the - * network will prune the parameters based on the sparsity_ratio. More deatils + * network will prune the parameters based on the sparsity_ratio. More details * can be found https://arxiv.org/pdf/1506.02626.pdf. */ diff --git a/python/paddle/trainer_config_helpers/attrs.py b/python/paddle/trainer_config_helpers/attrs.py index 66163bdc8dc40bf0c0cdf1aed63bff329479469e..c02306f3945cebecacc3870e68cc2d919fb8ea4b 100644 --- a/python/paddle/trainer_config_helpers/attrs.py +++ b/python/paddle/trainer_config_helpers/attrs.py @@ -84,7 +84,7 @@ class HookAttribute(object): assert is_compatible_with( self.sparsity_ratio, float), 'sparisity_ratio must be float type' - assert self.sparsity_ratio <= 1 and self.sparsity_ratio >= 0, 'sparisity_ratio must be a float between [0, 1] ' + assert self.sparsity_ratio <= 1 and self.sparsity_ratio >= 0, 'sparsity_ratio must be a float between [0, 1] ' def __call__(self): return ParameterHook(self.type, sparsity_ratio=self.sparsity_ratio)