Skip to content

Conversation

@eellison
Copy link
Contributor

i will do loops in a follow up after some other changes I am working on have landed

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 24, 2019
@eellison eellison requested review from Krovatkin and driazati May 24, 2019 16:00
Copy link
Contributor

@Krovatkin Krovatkin left a comment

Choose a reason for hiding this comment

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

:shipit:


// var is only defined in one branch save error in case it's used later
auto err = [&](const std::string& v, const std::string& branch) {
ErrorReport error(stmt);
Copy link
Contributor

Choose a reason for hiding this comment

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

this will get thrown when we try to do getVar to unify value types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this uses the same mechanism we use when we cannot unify the type of two values. We don't emit an error now, and cache the error msg if they try to use the var again later.

// check if this value was not emitted in an if statement because of a

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.

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

@eellison
Copy link
Contributor Author

@pytorchbot rebase this please

@eellison
Copy link
Contributor Author

@pytorchbot retest this please

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.

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

@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in 0aeb971.

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