Skip to content

Conversation

@arktrail
Copy link
Contributor

Summary:
This is a new PR for #40850, #40987 and #41206(I unintentionally closed), as I have some issues for rebates for that one. Very sorry about that. And I have fixed the tests failed in that PR.

This diff contains the implementation of C++ API for ParameterList from #25883.
Refer to the Python API:

class ParameterList(Module):

Not sure about some naming difference between C++ API and Python API, like append, should it be called push_back

Test Plan: Add unit tests in this diff

Reviewers: @glaringlee

Subscribers:

Tasks: #25883

Tags:

@glaringlee glaringlee requested review from glaringlee and removed request for ebetica and goldsborough July 10, 2020 21:56
@dr-ci
Copy link

dr-ci bot commented Jul 11, 2020

💊 CI failures summary and remediations

As of commit 6e961cf (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 2 times.

@arktrail
Copy link
Contributor Author

Hi @glaringlee, I have learned how to rebase the PR. Since all the tests are passed, could you please check if this PR is good to go? Thank you very much!

@glaringlee
Copy link
Contributor

@yyn19951228
I was waiting all the tests passed. Looks good to me now, will run fb internal test as well, and approve once it passed。

I was wondering whether you could write some in file docs for both parameterList and Dict? It is not necessary for this PR.
like this
https://github.com/pytorch/pytorch/blob/master/torch/csrc/api/include/torch/nn/modules/container/modulelist.h

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.

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

@arktrail
Copy link
Contributor Author

@glaringlee
Sure, I will try to do that, and please help polish them as I might have some misunderstanding of some parts.

@glaringlee
Copy link
Contributor

@yyn19951228 Thank you so much, and sure, I will help on polishing.

Copy link
Contributor

@glaringlee glaringlee left a comment

Choose a reason for hiding this comment

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

LGTM now

@facebook-github-bot
Copy link
Contributor

@glaringlee merged this pull request in 98df978.

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.

5 participants