Skip to content

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