Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # 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