Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add underscore to nn.init.* and deprecate the original ones#6093

Merged
ezyang merged 2 commits into
pytorch:masterfrom
ssnl:init_
Mar 29, 2018
Merged

Add underscore to nn.init.* and deprecate the original ones#6093
ezyang merged 2 commits into
pytorch:masterfrom
ssnl:init_

Conversation

@ssnl
Copy link
Copy Markdown
Collaborator

@ssnl ssnl commented Mar 29, 2018

Fixes #5946.

Comment thread torch/nn/init.py
return meth(*args, **kwargs)

deprecated_init.__doc__ = r"""
{old_name}(...)

This comment was marked as off-topic.

Comment thread docs/source/nn.rst
.. autofunction:: uniform_
.. autofunction:: normal_
.. autofunction:: constant_
.. autofunction:: eye_

This comment was marked as off-topic.

This comment was marked as off-topic.

@ezyang ezyang merged commit 4f05cb7 into pytorch:master Mar 29, 2018
@ssnl ssnl deleted the init_ branch March 29, 2018 17:26
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…6093)

Fixes pytorch#5946.

* add underscore to nn.init.* and deprecate the original ones

* add a test for deprecation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] Add underscore to nn.init functions

4 participants