Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FX][EZ] Add Node.all_input_nodes #48270

Closed
wants to merge 1 commit into from

Conversation

jamesr66a
Copy link
Collaborator

@jamesr66a jamesr66a commented Nov 19, 2020

Stack from ghstack:

Seems the discoverability of the pattern of using map_arg to pull out the input nodes from args and kwargs wasn't very good, and people were doing hacks (e.g. inverting the users relations) to get input Nodes per Node. This adds Node.all_input_nodes, which just directly returns all the Node inputs.

Differential Revision: D25100241

[ghstack-poisoned]
jamesr66a pushed a commit that referenced this pull request Nov 19, 2020
ghstack-source-id: 4e39d5d60fabffd899cda0ceb52a3dd75c9136e2
Pull Request resolved: #48270
@jamesr66a jamesr66a changed the title [FX] Add Node.all_input_nodes [FX][EZ] Add Node.all_input_nodes Nov 19, 2020
@codecov
Copy link

codecov bot commented Nov 20, 2020

Codecov Report

Merging #48270 (1d93f2f) into gh/jamesr66a/321/base (678fe9f) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

@@                    Coverage Diff                    @@
##           gh/jamesr66a/321/base   #48270      +/-   ##
=========================================================
- Coverage                  80.96%   80.86%   -0.10%     
=========================================================
  Files                       1844     1844              
  Lines                     199448   199454       +6     
=========================================================
- Hits                      161483   161295     -188     
- Misses                     37965    38159     +194     

Copy link
Contributor

@Chillee Chillee left a comment

Choose a reason for hiding this comment

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

LGTM.

@facebook-github-bot
Copy link
Contributor

@jamesr66a merged this pull request in 998c4ca.

@facebook-github-bot facebook-github-bot deleted the gh/jamesr66a/321/head branch November 23, 2020 15:22
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.

None yet

3 participants