Skip to content

Commit 89622bc

Browse files
committed
[Clustering] Fix error message in clustering_registry.py
Fix typo for get_clustering_impl()
1 parent c97a04a commit 89622bc

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
@@ -233,15 +233,15 @@ def get_clustering_impl(cls, layer, weight_name):
233233
raise ValueError(
234234
"Class {given_class} has not been registered in the "
235235
"ClusteringLookupRegistry. Use ClusteringLookupRegistry."
236-
"register_new_implemenetation to fix this.".format(
236+
"register_new_implementation to fix this.".format(
237237
given_class=layer.__class__
238238
)
239239
)
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} "
243243
"has not been registered in the ClusteringLookupRegistry. Use "
244-
"ClusteringLookupRegistry.register_new_implemenetation "
244+
"ClusteringLookupRegistry.register_new_implementation "
245245
"to fix this.".format(
246246
given_class=layer.__class__,
247247
given_weight_name=weight_name

0 commit comments

Comments
 (0)