Skip to content

Dictionarize check_inputs coming from trace#20813

Closed
Krovatkin wants to merge 2 commits intopytorch:masterfrom
Krovatkin:krovatkin/trace_fix2
Closed

Dictionarize check_inputs coming from trace#20813
Krovatkin wants to merge 2 commits intopytorch:masterfrom
Krovatkin:krovatkin/trace_fix2

Conversation

@Krovatkin
Copy link
Contributor

No description provided.

@Krovatkin Krovatkin requested a review from zdevito May 22, 2019 17:21
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 22, 2019
if check_inputs is None:
return None

canon_check_inputs = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one liner is more idiomatic python:[{'forward': c} for c in check_inputs}]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed! thanks!

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.

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

@facebook-github-bot
Copy link
Contributor

@Krovatkin merged this pull request in 31e2d20.

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.

4 participants