Skip to content

Add NativeFunctionGroup#45918

Closed
ezyang wants to merge 5 commits intogh/ezyang/848/basefrom
gh/ezyang/848/head
Closed

Add NativeFunctionGroup#45918
ezyang wants to merge 5 commits intogh/ezyang/848/basefrom
gh/ezyang/848/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Oct 6, 2020

Stack from ghstack:

This groups together related native functions (functional, inplace, out)
into a single group. It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang ezyang@fb.com

Differential Revision: D24163526

This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Oct 6, 2020
This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 14355c1
Pull Request resolved: #45918
@ezyang ezyang requested a review from ljk53 October 6, 2020 20:09
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 7, 2020

Codecov Report

Merging #45918 into gh/ezyang/848/base will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           gh/ezyang/848/base   #45918   +/-   ##
===================================================
  Coverage               68.28%   68.28%           
===================================================
  Files                     410      410           
  Lines                   53468    53468           
===================================================
  Hits                    36513    36513           
  Misses                  16955    16955           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c419b70...33e3d04. Read the comment docs.

This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Oct 7, 2020
This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 0becbb3
Pull Request resolved: #45918
@ezyang ezyang requested a review from bhosmer October 7, 2020 18:59

# Represents a bundle of native functions that are semantically related.
@dataclass(frozen=True)
class NativeFunctionGroup:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A third concept we also name "group"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Second, really; after I got rid of grouped_arguments for packs in faithful C++ signature we are now just "group arguments" and "group native functions." IDK if you have a better name; in this case it seems less bad because the entity being grouped is different between the two cases.

This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Differential Revision: [D24163526](https://our.internmc.facebook.com/intern/diff/D24163526)

[ghstack-poisoned]
@dr-ci
Copy link
Copy Markdown

dr-ci bot commented Oct 9, 2020

💊 CI failures summary and remediations

As of commit 33e3d04 (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 8 times.

This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Differential Revision: [D24163526](https://our.internmc.facebook.com/intern/diff/D24163526)

[ghstack-poisoned]
This groups together related native functions (functional, inplace, out)
into a single group.  It's not used by anything but Jiakai said this
would be useful for his stuff so I'm putting it in immediately.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Differential Revision: [D24163526](https://our.internmc.facebook.com/intern/diff/D24163526)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ezyang merged this pull request in 944eb0e.

@facebook-github-bot facebook-github-bot deleted the gh/ezyang/848/head branch October 17, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants