model-optimization
model-optimization copied to clipboard
allow registering custom layers in prune and clustering registries.
Hi team tensorflow-model-optimization,
I was applying clustering and pruning to a model based on Bert encoder from tensorlfow-models-official,
and noticed that there is no API for registering custom layers, so here is a PR, which adds it.
Implemented changes
- Allow registering custom layers in
PruneRegistryandClusteringRegistry - Export
PruneRegistryandClusteringRegistryas part of public API.