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
Add clustering module to API docs generator #421
Add clustering module to API docs generator #421
Conversation
@alanchiao Could you please review this? |
@arovir01: take a look at #427, for what would be better. Afterwards, we should wait until just a bit prior to launch to submit this PR, since it'll otherwise show up the API docs as launched. If you want to test the actual imports earlier, we can start by submitting a version of this that
And then all the colabs can update to their final versions with the |
8376dc8
to
1b945f5
Compare
8aa42bf
to
4b0e95f
Compare
Looks good. Could you add the additional CentroidInitialization enum? @Ruomei Keeping it in the same location (as in tfmot.clustering.keras.CentroidInitialization) seems ok in my opinion. On the side, noticed that CentroidInitialization doesn't have any API docs. https://www.tensorflow.org/api_docs/python/tf/distribute/ReduceOp as an example. |
4b0e95f
to
dcb5f92
Compare
Done.
Good point. Will do this in a separate PR, as it is a somewhat distinct piece of work. |
Thanks! @Áron Virginás-Tar<mailto:notifications@github.com>
…________________________________
From: Áron Virginás-Tar <notifications@github.com>
Sent: 17 July 2020 11:26
To: tensorflow/model-optimization <model-optimization@noreply.github.com>
Cc: Ruomei Yan <Ruomei.Yan@arm.com>; Mention <mention@noreply.github.com>
Subject: Re: [tensorflow/model-optimization] Add clustering module to API docs generator (#421)
Could you add the additional CentroidInitialization enum?
Done.
On the side, noticed that CentroidInitialization doesn't have any API docs. https://www.tensorflow.org/api_docs/python/tf/distribute/ReduceOp as an example.
cluster_weights can instead directly reference the CentroidInitialization class in its docs and people can go to
`CentroidInitialization''s API docs to understand the differences between the three (like the references to tf.keras.layers.Layer in https://www.tensorflow.org/api_docs/python/tf/keras/estimator/model_to_estimator).
Good point. Will do this in a separate PR, as it is a somewhat distinct piece of work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#421 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIUVJCHEZHAH4JKKHW5UN4DR4ARONANCNFSM4NYQYGIA>.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|
PR created. |
@alanchiao, can you please review the recent changes? |
Looks good - though it is missing changes to python/core/api/BUILD. Documentation is under final review so will go ahead and merge this while making the necessary changes to BUILD. |
Noted. I will add them. Or do we want to do them in a separate change? |
This PR adds the clustering module to
python/core/api
and updatesbuild_docs.py
to generate the correct API documentation for clustering.