Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8 Windows JIT test failure #32287

Open
peterjc123 opened this issue Jan 16, 2020 · 1 comment
Open

Python 3.8 Windows JIT test failure #32287

peterjc123 opened this issue Jan 16, 2020 · 1 comment
Labels
oncall: jit Add this issue/PR to JIT oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@peterjc123
Copy link
Collaborator

peterjc123 commented Jan 16, 2020

馃悰 Bug

Error text:

======================================================================
FAIL: test_unmatched_type_annotation (__main__.TestScript)
----------------------------------------------------------------------
RuntimeError: 
Number of type annotations (2) did not match the number of function parameters (1):
  File "test_jit.py", line 4302
            @torch.jit.script
            def invalid2(a):
                         ~~~...  <--- HERE
                # type: (Int, Int) -> Int
                return a + 2


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test_jit.py", line 4302, in test_unmatched_type_annotation
    def invalid2(a):
AssertionError: "def\ invalid2\(a\):\
\ \ \ \ \ \ \ \ \ \ \ \ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\ <\-\-\-\ HERE\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \#\ type:\ \(Int,\ Int\)\ \->\ Int\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ return\ a\ \+\ 2" does not match "
Number of type annotations (2) did not match the number of function parameters (1):
  File "test_jit.py", line 4302
            @torch.jit.script
            def invalid2(a):
                         ~~~...  <--- HERE
                # type: (Int, Int) -> Int
                return a + 2
"

See https://app.circleci.com/jobs/github/pytorch/pytorch/4269821.

To Reproduce

Steps to reproduce the behavior:

  1. python test_jit.py

Expected behavior

Test pass

Environment

Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
  • PyTorch Version (e.g., 1.0): 8a5e21a
  • OS (e.g., Linux): Windows
  • How you installed PyTorch (conda, pip, source): source
  • Build command you used (if compiling from source): python setup.py build
  • Python version: 3.8
  • CUDA/cuDNN version: N/A
  • GPU models and configuration: N/A
  • Any other relevant information:

Additional context

cc @suo

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jan 16, 2020
@peterjc123
Copy link
Collaborator Author

peterjc123 commented Jan 16, 2020

Since it doesn't affect correctness, I'll skip this test for Windows and Python 3.8 in #32215.

@soumith soumith added this to the 1.4.0 milestone Jan 16, 2020
@mrshenli mrshenli added triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module and removed triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jan 16, 2020
@suo suo added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Feb 28, 2020
@gchanan gchanan removed this from the 1.4.0 milestone Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall: jit Add this issue/PR to JIT oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

6 participants