Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[JIT] add support for ModuleDict#25715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
eellison wants to merge2 commits intopytorch:masterfromeellison:module_dict

Conversation

@eellison
Copy link
Contributor

Add support for nn.ModuleDict in script. This is needed to support torchvision.

@pytorchbotpytorchbot added oncall: jitAdd this issue/PR to JIT oncall triage queue module: nnRelated to torch.nn module: pybindRelated to our Python bindings / interactions with other Python libraries labelsSep 5, 2019
Copy link
Contributor

@driazatidriazati left a comment

Choose a reason for hiding this comment

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

Mostly good, a couple small questions

x = mod(x)

for mod in self.moduledict.values():
x = mod(x)
Copy link
Contributor

Choose a reason for hiding this comment

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

This only checks the value is right for the last module in the dict, the results should go into a list or something so they can all be checked

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Well, the three modules that i have aren't commutative so it's checking that the order is correct.


return x, names

m = M()
Copy link
Contributor

Choose a reason for hiding this comment

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

checkModule does this same thing

defcheckModule(self,nn_module,args):

eellison reacted with thumbs up emoji
Copy link
Contributor

@facebook-github-botfacebook-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.

@eellison is landing this pull request. If you are a Facebook employee, you can view this diffon Phabricator.

@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in8f7020b.

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

Reviewers

@facebook-github-botfacebook-github-botfacebook-github-bot left review comments

@suosuoAwaiting requested review from suo

@apaszkeapaszkeAwaiting requested review from apaszke

+1 more reviewer

@driazatidriazatidriazati approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Mergedmodule: nnRelated to torch.nnmodule: pybindRelated to our Python bindings / interactions with other Python librariesoncall: jitAdd this issue/PR to JIT oncall triage queue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@eellison@facebook-github-bot@driazati@pytorchbot@mruberry

[8]ページ先頭

©2009-2025 Movatter.jp