Skip to content

Conversation

@eellison
Copy link
Contributor

@eellison eellison commented May 22, 2019

First batch of #20769, handles isupper, islower, isdigit, isspace, isalnum, isalpha, upper, lower

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 22, 2019
@eellison eellison requested review from driazati and suo May 22, 2019 21:07
# type: (str) -> Tuple[str, str]
return s.upper(), s.lower()

inputs = ["", "12a", "!B", "12", "a", "B", "aB", "$12", "B12", "AB ",
Copy link
Contributor

Choose a reason for hiding this comment

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

needs a >1 char string of lowers: "aaaa" or something

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

test failures unrelated

@ezyang
Copy link
Contributor

ezyang commented May 23, 2019

This broke Windows.

00:57:52          C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\torch\csrc\jit\register_prim_ops.cpp(1939): error C2039: 'isalpha': is not a member of 'std' [C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\caffe2\caffe2.vcxproj]
00:57:52          C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\torch\csrc\jit\register_prim_ops.cpp(1940): error C2039: 'isalpha': is not a member of 'std' [C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\caffe2\caffe2.vcxproj]
00:57:52          C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\torch\csrc\jit\register_prim_ops.cpp(1940): error C2039: 'isupper': is not a member of 'std' [C:\Jenkins\workspace\caffe2-builds\py2-cuda9.0-cudnn7-windows-build\caffe2\caffe2.vcxproj]

@eellison
Copy link
Contributor Author

eellison commented May 23, 2019

yep fix out here #20842

@eellison eellison reopened this May 23, 2019
@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in aebcd80.

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.

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.

6 participants