Skip to content

Commit c97a04a

Browse files
committed
[Clustering] Fix error message in clustering_registry.py
Fix typo and spacing for get_clustering_impl()
1 parent 3e7592f commit c97a04a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def get_clustering_impl(cls, layer, weight_name):
231231
"""
232232
if not layer.__class__ in cls._LAYERS_RESHAPE_MAP:
233233
raise ValueError(
234-
"Class {given_class} has not been registerd in the"
234+
"Class {given_class} has not been registered in the "
235235
"ClusteringLookupRegistry. Use ClusteringLookupRegistry."
236236
"register_new_implemenetation to fix this.".format(
237237
given_class=layer.__class__
@@ -240,7 +240,7 @@ def get_clustering_impl(cls, layer, weight_name):
240240
if weight_name not in cls._LAYERS_RESHAPE_MAP[layer.__class__]:
241241
raise ValueError(
242242
"Weight with the name '{given_weight_name}' for class {given_class} "
243-
"has not been registerd in the ClusteringLookupRegistry. Use "
243+
"has not been registered in the ClusteringLookupRegistry. Use "
244244
"ClusteringLookupRegistry.register_new_implemenetation "
245245
"to fix this.".format(
246246
given_class=layer.__class__,

0 commit comments

Comments
 (0)