From fdde4eff0da95a170f2f727a8345057f20be09ef Mon Sep 17 00:00:00 2001 From: zlx Date: Fri, 23 Jun 2017 12:00:45 +0800 Subject: [PATCH] modify some topo --- paddle/parameter/ParameterUpdaterHook.cpp | 2 +- python/paddle/trainer_config_helpers/attrs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/parameter/ParameterUpdaterHook.cpp b/paddle/parameter/ParameterUpdaterHook.cpp index 968803fc0..c8b47687f 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 66163bdc8..c02306f39 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) -- GitLab