Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow registering custom layers in prune and clustering registries. #1070

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaarrti
Copy link

@aaarrti aaarrti commented May 14, 2023

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 PruneRegistry and ClusteringRegistry
  • Export PruneRegistry and ClusteringRegistry as part of public API.

@github-actions github-actions bot added api-review API review needed technique:clustering Regarding tfmot.clustering.keras APIs and docs technique:pruning Regarding tfmot.sparsity.keras APIs and docs labels May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review API review needed technique:clustering Regarding tfmot.clustering.keras APIs and docs technique:pruning Regarding tfmot.sparsity.keras APIs and docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant