-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Update links in initializers documentation #5317
Conversation
* ["constant"](https://pytorch.org/docs/master/nn.init.html?highlight=orthogonal#torch.nn.init.constant_) | ||
* ["eye"](https://pytorch.org/docs/master/nn.init.html?highlight=orthogonal#torch.nn.init.eye_) | ||
* ["dirac"](https://pytorch.org/docs/master/nn.init.html?highlight=orthogonal#torch.nn.init.dirac_) | ||
* ["xavier_uniform"](https://pytorch.org/docs/master/nn.init.html?highlight=orthogonal#torch.nn.init.xavier_uniform_) |
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 length of the line exceeds 115... 💭
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.
You could just add a # noqa: E501
comment to the end of this docstring. For example, see
""" # noqa: E501 |
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.
It makes sense! I added the comment in e565dcf.
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.
LGTM other than the linting issue!
c564e2a
to
e565dcf
Compare
e565dcf
to
58f0bdc
Compare
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.
Thanks @himkt!
I found some links in the initializer documentation were broken.
This PR updates them to fix.
Before submitting
section of the
CONTRIBUTING
docs.I've updated or added any relevant docstrings following the syntax described in theWriting docstrings section of the
CONTRIBUTING
docs.If this PR fixes a bug, I've added a test that will fail without my fix.If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.After submitting
codecov/patch
reports high test coverage (at least 90%).You can find this under the "Actions" tab of the pull request once the other checks have finished.