-
Notifications
You must be signed in to change notification settings - Fork 26.3k
make default string arguments in schemas human readable #27088
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
Conversation
|
@eellison could you please take a look when you have a mnt? Seems to be a reasonable solution and you seem to have dealt with |
eellison
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Although this change seems benign to me a test would be nice
facebook-github-bot
left a comment
There was a problem hiding this 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.
| self.bar = y # can't assign to non-initialized attr | ||
|
|
||
| def test_schema_human_readable(self): | ||
| with self.assertRaisesRegex(RuntimeError, "nearest"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we matching against "nearest" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original issue it was the argument to mode that was printed out as octal:
mode='\156\145\141\162\145\163\164'
When it should just be
mode='nearest'
So I am matching against nearest to make sure that we are printing it correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add in a comment in the test in a PR
|
@pytorchbot merge this please |
facebook-github-bot
left a comment
There was a problem hiding this 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.
Summary: [jit] String default args get printed as ascii values pytorch/pytorch#25804 pytorch/pytorch#25804 Pull Request resolved: pytorch/pytorch#27088 Differential Revision: D17689732 Pulled By: Krovatkin fbshipit-source-id: f385b2fe44c5a2387bfcb6484edf7faa92bc8edf
|
@Krovatkin merged this pull request in bb51980. |
Summary: [jit] String default args get printed as ascii values pytorch#25804 pytorch#25804 Pull Request resolved: pytorch#27088 Differential Revision: D17689732 Pulled By: Krovatkin fbshipit-source-id: f385b2fe44c5a2387bfcb6484edf7faa92bc8edf
Summary: [jit] String default args get printed as ascii values pytorch#25804 pytorch#25804 Pull Request resolved: pytorch#27088 Differential Revision: D17689732 Pulled By: Krovatkin fbshipit-source-id: f385b2fe44c5a2387bfcb6484edf7faa92bc8edf
[jit] String default args get printed as ascii values #25804
#25804