Skip to content

Conversation

@ZolotukhinM
Copy link

@ZolotukhinM ZolotukhinM commented Aug 26, 2020

Stack from ghstack:

Differential Revision: D23360796

@ZolotukhinM ZolotukhinM requested a review from apaszke as a code owner August 26, 2020 23:06
ZolotukhinM pushed a commit that referenced this pull request Aug 26, 2020
ghstack-source-id: 0e915e4
Pull Request resolved: #43671
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 26, 2020
@ZolotukhinM ZolotukhinM requested a review from eellison August 27, 2020 03:15
ZolotukhinM pushed a commit that referenced this pull request Aug 28, 2020
ZolotukhinM pushed a commit that referenced this pull request Aug 29, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
ZolotukhinM pushed a commit that referenced this pull request Aug 30, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
ZolotukhinM pushed a commit that referenced this pull request Aug 31, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
ZolotukhinM pushed a commit that referenced this pull request Aug 31, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
ZolotukhinM pushed a commit that referenced this pull request Sep 1, 2020
ghstack-source-id: 2a517ff
Pull Request resolved: #43671
@dr-ci
Copy link

dr-ci bot commented Sep 1, 2020

💊 CI failures summary and remediations

As of commit ad1ad5e (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 22 times.

ZolotukhinM pushed a commit that referenced this pull request Sep 1, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
ZolotukhinM pushed a commit that referenced this pull request Sep 1, 2020
…sion groups."

Original PR: #43671

[ghstack-poisoned]
Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

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

LGTM

}
}

void testFuserPass_4() {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe testFuserPass_merge_adjacent_fusion_groups

// If merging suceeded, save the merged group as the "previous" fusion
// group so that we can try to merge the next one into it.
if (prev_fusion_group) {
debugDumpFusionGroup(
Copy link
Contributor

Choose a reason for hiding this comment

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

small nit: theres a debug dump on each branch of the following if statement and a debug on the previous line, not sure how much information this adds

debugDumpFusionGroup(
"Trying to merge into the previous fusion group: ",
prev_fusion_group);
if (canMerge(prev_fusion_group, fusion_group)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

tryMerge can fail even when canMerge can fail, which is a little confusing. https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/tensorexpr_fuser.cpp#L443

Can we inline canMerge into tryMerge, and then call tryMerge here instead of canMerge ? (these are the only two callsites)


// Symbolic checks
REQ(canHandle(producer));
REQ(canHandle(producer) || producer->kind() == prim::TensorExprGroup);
Copy link
Contributor

Choose a reason for hiding this comment

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

could also add prim::TensorExprGroup to the symbols which we support

ZolotukhinM pushed a commit that referenced this pull request Sep 3, 2020
ghstack-source-id: bee4c1b
Pull Request resolved: #43671
@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

❗ No coverage uploaded for pull request base (gh/ZolotukhinM/301/base@d2e2943). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                    Coverage Diff                     @@
##             gh/ZolotukhinM/301/base   #43671   +/-   ##
==========================================================
  Coverage                           ?   68.07%           
==========================================================
  Files                              ?      384           
  Lines                              ?    49765           
  Branches                           ?        0           
==========================================================
  Hits                               ?    33880           
  Misses                             ?    15885           
  Partials                           ?        0           

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 d2e2943...ad1ad5e. Read the comment docs.

ZolotukhinM pushed a commit that referenced this pull request Sep 5, 2020
ghstack-source-id: fffae67
Pull Request resolved: #43671
ZolotukhinM pushed a commit that referenced this pull request Sep 10, 2020
ghstack-source-id: 6673ea6
Pull Request resolved: #43671
bertmaher pushed a commit that referenced this pull request Sep 15, 2020
@facebook-github-bot
Copy link
Contributor

@ZolotukhinM merged this pull request in d66520b.

xuzhao9 pushed a commit that referenced this pull request Sep 18, 2020
Summary: Pull Request resolved: #43671

Test Plan: Imported from OSS

Reviewed By: eellison

Differential Revision: D23360796

Pulled By: ZolotukhinM

fbshipit-source-id: 60ec318fe77ae9f2c821d9c4d106281845266e0f
@facebook-github-bot facebook-github-bot deleted the gh/ZolotukhinM/301/head branch September 19, 2020 14:23
loadbxh pushed a commit to loadbxh/Torch that referenced this pull request Sep 23, 2020
loadbxh pushed a commit to loadbxh/Torch that referenced this pull request Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants