Skip to content

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Jun 17, 2019

Stack from ghstack:

Summary: we've change implementation of iterating over parameters/attributes/modules
many times, and each time we've had to slightly break backward compatibility.
This changes the api to use a class to encapsulate iteration of parameters/attributes/modules.
This should allow us to make implementation changes without affecting the user API.

Differential Revision: D15864719

Summary: we've change  implementation of iterating over parameters/attributes/modules
many times, and each time we've had to slightly break backward compatibility.
This changes the api to use a class to encapsulate iteration of parameters/attributes/modules.
This should allow us to make implementation changes without affecting the user API.
@pytorchbot pytorchbot added oncall: jit Add this issue/PR to JIT oncall triage queue module: pybind Related to our Python bindings / interactions with other Python libraries labels Jun 17, 2019
Copy link
Member

@suo suo left a comment

Choose a reason for hiding this comment

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

ngnte (not great, not terrible either)

return a.i_ != b.i_;
}

struct slot_list {
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment explaining what this (and slot_iterator) is for/what problem it solves

@zdevito
Copy link
Contributor Author

zdevito commented Jun 18, 2019

I am going to squash this PR into the previous one, because they expose 2 sets of BC breaking changes and I would rather do it in one go. This also allows me to address the comment in the previous PR about not returning std::shared_ptr anymore.

@zdevito
Copy link
Contributor Author

zdevito commented Jun 28, 2019

merged into another commit

@zdevito zdevito closed this Jun 28, 2019
@facebook-github-bot facebook-github-bot deleted the gh/zdevito/67/head branch October 28, 2019 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: pybind Related to our Python bindings / interactions with other Python libraries oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants