-
Notifications
You must be signed in to change notification settings - Fork 50
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
[WIP] add docstrings in mms classes and functions #1101
Conversation
8efbd36
to
48b4998
Compare
@@ -34,52 +34,55 @@ def DLRMBlock( | |||
*, | |||
embedding_dim: int = None, | |||
embedding_options: EmbeddingOptions = None, | |||
embeddings: Optional[Block] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not move the order of arguments if possible - it's a breaking change in the unlikely case where people provide all of the arguments in order as opposed to using named arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The *
on line 34 forces the remaining arguments to be keword arguments. which makes them robust to the order here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nv-alaiacano thanks for your comment. Make sense, I talked to Oliver, I think we are safe changing the position of the arg thanks to *
arg there. It makes everything forced to be a keyword arg, rather than a positional arg.
* Fixed docstrings * [WIP] add docstrings in mms classes and functions (#1101) * add docstings * add docstrings * Add docstrings (#1106) * Add docstrings to Encoder * Add docstrings to ItemRetrievalScorer * Add docstrings to Model * Fix docstring for TwoTowerModel * Add docstring to YoutubeDNNRetrievalModelV2 * Add docstrings to L2Norm * Add docstrings to ContinuousFeatures * Add docstrings to AverageEmbeddingsByWeightFeature * Add docstrings to ReplaceMaskedEmbeddings * Add docstrings to SequenceEmbeddingFeatures * Add docstrings to EmbeddingTable * lint * lint * lint * update docstring syntax --------- Co-authored-by: Gabriel Moreira <gmoreira@nvidia.com> Co-authored-by: rnyak <16246900+rnyak@users.noreply.github.com> Co-authored-by: Adam Laiacano <alaiacano@nvidia.com>
This is still WIP.