Skip to content

Conversation

@jma127
Copy link
Contributor

@jma127 jma127 commented Aug 15, 2018

This commit adds the buffers() and named_buffers() methods as
analogues of parameters() and named_parameters().

@ezyang
Copy link
Contributor

ezyang commented Aug 15, 2018

don't forget tests!

@jma127
Copy link
Contributor Author

jma127 commented Aug 15, 2018

Yep, adding as we speak :)

@jma127 jma127 changed the title [WIP] Add buffers(), named_buffers() methods. Add buffers(), named_buffers() methods. Aug 16, 2018
@jma127
Copy link
Contributor Author

jma127 commented Aug 16, 2018

Ready for review. cc @ezyang @ssnl @apaszke

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@apaszke
Copy link
Contributor

apaszke commented Aug 16, 2018

LGTM, but please let's remove the stuff that you kept for backwards compatibility. All those functions were implementation details, and we shouldn't keep them around for the sake of code clarity.

@jma127
Copy link
Contributor Author

jma127 commented Aug 16, 2018

Got it, will do. memo made me feel real icky, so glad to get rid of it 😄

This commit adds the ``buffers()`` and ``named_buffers()`` methods as
analogues of ``parameters()`` and ``named_parameters()``.
@jma127
Copy link
Contributor Author

jma127 commented Aug 16, 2018

Ready to merge, cc @apaszke / @ezyang as mergers.

The one CI failure looks spurious.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SsnL has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@jma127
Copy link
Contributor Author

jma127 commented Aug 16, 2018

@pytorchbot retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants