diff --git a/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py b/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py index e36ae8f56..f1bf0901a 100644 --- a/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py +++ b/tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py @@ -231,17 +231,17 @@ def get_clustering_impl(cls, layer, weight_name): """ if not layer.__class__ in cls._LAYERS_RESHAPE_MAP: raise ValueError( - "Class {given_class} has not been registerd in the" + "Class {given_class} has not been registered in the " "ClusteringLookupRegistry. Use ClusteringLookupRegistry." - "register_new_implemenetation to fix this.".format( + "register_new_implementation to fix this.".format( given_class=layer.__class__ ) ) if weight_name not in cls._LAYERS_RESHAPE_MAP[layer.__class__]: raise ValueError( "Weight with the name '{given_weight_name}' for class {given_class} " - "has not been registerd in the ClusteringLookupRegistry. Use " - "ClusteringLookupRegistry.register_new_implemenetation " + "has not been registered in the ClusteringLookupRegistry. Use " + "ClusteringLookupRegistry.register_new_implementation " "to fix this.".format( given_class=layer.__class__, given_weight_name=weight_name