Skip to content

Commit 3ffd9ee

Browse files
Merge pull request #648 from aksh98md:master
PiperOrigin-RevId: 363130034
2 parents 3e7592f + 89622bc commit 3ffd9ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,17 @@ 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."
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} "
243-
"has not been registerd in the ClusteringLookupRegistry. Use "
244-
"ClusteringLookupRegistry.register_new_implemenetation "
243+
"has not been registered in the ClusteringLookupRegistry. Use "
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)