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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support typed assignment using empty list constructor #46965

Closed
wants to merge 1 commit into from

Conversation

ansley
Copy link

@ansley ansley commented Oct 28, 2020

Stack from ghstack:

@ansley ansley requested a review from apaszke as a code owner October 28, 2020 01:34
ansley pushed a commit that referenced this pull request Oct 28, 2020
ghstack-source-id: 17c8e2ddefdb3b3f9b23d86239be3310ec33bb6e
Pull Request resolved: #46965
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 28, 2020
@ansley ansley marked this pull request as draft October 28, 2020 01:36
@ansley ansley requested a review from gmagogsfm October 28, 2020 01:36
@dr-ci
Copy link

dr-ci bot commented Oct 28, 2020

💊 CI failures summary and remediations

As of commit 929c631 (more details on the Dr. CI page):



🕵️ 19 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_test (1/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:54:34 ERROR [0.307s]: test_nonzero_astuple_out_xla (__main__.TestTorchDeviceTypeXLA)
Oct 28 03:54:34 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:54:34   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 5716 
Oct 28 03:54:34         def cpp_warn_fn(): 
Oct 28 03:54:34             out = torch.empty((5,)) 
Oct 28 03:54:34                   ~~~~~~~~~~~ <--- HERE 
Oct 28 03:54:34             torch.arange(0, 3, out=out) 
Oct 28 03:54:34             return out 
Oct 28 03:54:34  
Oct 28 03:54:34  
Oct 28 03:54:34 ====================================================================== 
Oct 28 03:54:34 ERROR [0.307s]: test_nonzero_astuple_out_xla (__main__.TestTorchDeviceTypeXLA) 
Oct 28 03:54:34 ---------------------------------------------------------------------- 
Oct 28 03:54:34 Traceback (most recent call last): 
Oct 28 03:54:34   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_trace.py", line 441, in run_mod_and_filter_tensor_outputs 
Oct 28 03:54:34     outs = wrap_retval(mod(*_clone_inputs(inputs))) 
Oct 28 03:54:34   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 127, in prof_func_call 
Oct 28 03:54:34     return prof_callable(func_call, *args, **kwargs) 
Oct 28 03:54:34   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 124, in prof_callable 
Oct 28 03:54:34     return callable(*args, **kwargs) 
Oct 28 03:54:34 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:54:34   File "<string>", line 3 

See CircleCI build pytorch_linux_bionic_py3_8_gcc9_coverage_test (2/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:18:32 ERROR [0.011s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd)
Oct 28 02:18:32 	  File "<string>", line 3 
Oct 28 02:18:32 	 
Oct 28 02:18:32 	      def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 02:18:32 	          return self + mat1.mm(mat2) 
Oct 28 02:18:32 	                        ~~~~~~~ <--- HERE 
Oct 28 02:18:32 	 
Oct 28 02:18:32 	      def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 02:18:32  
Oct 28 02:18:32  
Oct 28 02:18:32 ====================================================================== 
Oct 28 02:18:32 ERROR [0.011s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd) 
Oct 28 02:18:32 ---------------------------------------------------------------------- 
Oct 28 02:18:32 Traceback (most recent call last): 
Oct 28 02:18:32   File "test_autograd.py", line 7240, in test_fork_join_in_middle 
Oct 28 02:18:32     def train_fn_jit_no_retain(middle, orig_x): 
Oct 28 02:18:32   File "/opt/conda/lib/python3.8/site-packages/torch/jit/_script.py", line 939, in script 
Oct 28 02:18:32     fn = torch._C._jit_script_compile( 
Oct 28 02:18:32 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:18:32   File "<string>", line 19 
Oct 28 02:18:32   return b <= a 
Oct 28 02:18:32 def sub(a : float, b : Tensor) -> Tensor: 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_jit_legacy_test (3/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:25:48 FAIL [0.002s]: test_ops_bound_in_functional (jit.test_unsupported_ops.TestUnsupportedOps)
Oct 28 02:25:48   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 42, in test_factory_ops_requires_grad_fail 
Oct 28 02:25:48     torch.jit.script(func) 
Oct 28 02:25:48 AssertionError: "Keyword argument requires_grad unknown" does not match "unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:25:48   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 31 
Oct 28 02:25:48         def ones(): 
Oct 28 02:25:48             return torch.ones([2], requires_grad=True) 
Oct 28 02:25:48                    ~~~~~~~~~~ <--- HERE 
Oct 28 02:25:48 " 
Oct 28 02:25:48  
Oct 28 02:25:48 ====================================================================== 
Oct 28 02:25:48 FAIL [0.002s]: test_ops_bound_in_functional (jit.test_unsupported_ops.TestUnsupportedOps) 
Oct 28 02:25:48 ---------------------------------------------------------------------- 
Oct 28 02:25:48 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:25:48   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 46 
Oct 28 02:25:48         def tensordot(): 
Oct 28 02:25:48             a = torch.arange(60.).reshape(3, 4, 5) 
Oct 28 02:25:48                 ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE 
Oct 28 02:25:48             b = torch.arange(24.).reshape(4, 3, 2) 
Oct 28 02:25:48             torch.tensordot(a, b, dims=([1, 0], [0, 1])) 
Oct 28 02:25:48  
Oct 28 02:25:48  

See CircleCI build pytorch_macos_10_13_py3_test (4/19)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:09:59 RuntimeError: test_autograd failed!
Oct 28 02:09:59 Generated XML report: test-reports/python-unittest/TEST-TestAutograd-20201028015920.xml 
Oct 28 02:09:59 Generated XML report: test-reports/python-unittest/TEST-TestAutogradComplex-20201028015920.xml 
Oct 28 02:09:59 Generated XML report: test-reports/python-unittest/TEST-TestAutogradDeviceTypeCPU-20201028015920.xml 
Oct 28 02:09:59 Generated XML report: test-reports/python-unittest/TEST-TestAutogradFunctional-20201028015920.xml 
Oct 28 02:09:59 Generated XML report: test-reports/python-unittest/TEST-TestMultithreadAutograd-20201028015920.xml 
Oct 28 02:09:59 Traceback (most recent call last): 
Oct 28 02:09:59   File "test/run_test.py", line 862, in <module> 
Oct 28 02:09:59     main() 
Oct 28 02:09:59   File "test/run_test.py", line 845, in main 
Oct 28 02:09:59     raise RuntimeError(err_message) 
Oct 28 02:09:59 RuntimeError: test_autograd failed! 
Oct 28 02:09:59 + cleanup 
Oct 28 02:09:59 + retcode=1 
Oct 28 02:09:59 + set +x 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test2 (5/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:49:12 ERROR:sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp: In function \'int main()\':\n/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp:2:23: error: expected \';\' before \'}\' token\n int main() { return 0 }\n ^\n" }
Oct 28 02:49:11 Traceback (most recent call last): 
Oct 28 02:49:11   File "test/run_test.py", line 862, in <module> 
Oct 28 02:49:11     main() 
Oct 28 02:49:11   File "test/run_test.py", line 845, in main 
Oct 28 02:49:11     raise RuntimeError(err_message) 
Oct 28 02:49:11 RuntimeError: test_linalg failed! 
Oct 28 02:49:12 + cleanup 
Oct 28 02:49:12 + retcode=1 
Oct 28 02:49:12 + set +x 
Oct 28 02:49:12 =================== sccache compilation log =================== 
Oct 28 02:49:12 ERROR:sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp: In function \'int main()\':\n/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp:2:23: error: expected \';\' before \'}\' token\n int main() { return 0 }\n                       ^\n" } 
Oct 28 02:49:12  
Oct 28 02:49:12 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Oct 28 02:49:12 Compile requests                151 
Oct 28 02:49:12 Compile requests executed        60 
Oct 28 02:49:12 Cache hits                       41 
Oct 28 02:49:12 Cache misses                     18 
Oct 28 02:49:12 Cache timeouts                    0 
Oct 28 02:49:12 Cache read errors                 0 
Oct 28 02:49:12 Forced recaches                   0 
Oct 28 02:49:12 Cache write errors                0 

See CircleCI build pytorch_ios_12_0_0_x86_64_build (6/19)

Step: "Run Simulator Tests" (full log | diagnosis details | 🔁 rerun)

[!] Tests have failed
[01:59:51]: ▸ Loading... 
[02:01:43]: Exit status: 65 
+--------------------+---+ 
|      Test Results      | 
+--------------------+---+ 
| Number of tests    | 1 | 
| Number of failures | 1 | 
+--------------------+---+ 
 
 
[!] Tests have failed 
 
####################################################################### 
# fastlane 2.165.0 is available. You are on 2.159.0. 
# You should use the latest version. 
# Please update using `sudo gem install fastlane`. 
####################################################################### 
 
2.165.0 Improvements 
* [spaceship] allow authentication to take key content instead of just its file path (#17369) via Roger Oba  
* [spaceship] added b2b and educational discount to app (#17490) via Josh Holtz  

See CircleCI build pytorch_python_doc_build (7/19)

Step: "Doc Build and Push" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:08:37 RuntimeError: class '__torch__.torch.distributed.optim.functional_adagrad._FunctionalAdagrad' already defined.
Oct 28 03:08:37   File "/opt/conda/lib/python3.6/site-packages/torch/distributed/optim/__init__.py", line 8, in <module> 
Oct 28 03:08:37     from .optimizer import DistributedOptimizer 
Oct 28 03:08:37   File "/opt/conda/lib/python3.6/site-packages/torch/distributed/optim/optimizer.py", line 9, in <module> 
Oct 28 03:08:37     from .functional_adagrad import _FunctionalAdagrad 
Oct 28 03:08:37   File "/opt/conda/lib/python3.6/site-packages/torch/distributed/optim/functional_adagrad.py", line 17, in <module> 
Oct 28 03:08:37     class _FunctionalAdagrad(object): 
Oct 28 03:08:37   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 924, in script 
Oct 28 03:08:37     _compile_and_register_class(obj, _rcb, qualified_name) 
Oct 28 03:08:37   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 64, in _compile_and_register_class 
Oct 28 03:08:37     torch._C._jit_script_class_compile(qualified_name, ast, defaults, rcb) 
Oct 28 03:08:37 RuntimeError: class '__torch__.torch.distributed.optim.functional_adagrad._FunctionalAdagrad' already defined. 
Oct 28 03:08:37  
Oct 28 03:08:37 looking for now-outdated files... none found 
Oct 28 03:08:37 pickling environment... done 
Oct 28 03:08:37 checking consistency... done 
Oct 28 03:08:37 preparing documents... done 
Oct 28 03:08:37 writing output... [  7%] amp .. generated/torch.arctan 
Oct 28 03:08:39 writing output... [ 14%] generated/torch.arctanh .. generated/torch.complex 
Oct 28 03:08:39 writing output... [ 21%] generated/torch.conj .. generated/torch.flipud 
Oct 28 03:08:40 writing output... [ 28%] generated/torch.floor .. generated/torch.isneginf 
Oct 28 03:08:41 writing output... [ 35%] generated/torch.isposinf .. generated/torch.lstsq 

See CircleCI build pytorch_linux_xenial_py3_clang7_onnx_ort_test2 (8/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_jit FAILED [ 85%]
Oct 28 02:19:55 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/integral_image_ops_test.py::TestIntegralImageOps::test_integral_image_ops PASSED [ 85%] 
Oct 28 02:19:55 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/jsd_ops_test.py::TestJSDOps::test_bernoulli_jsd PASSED [ 85%] 
Oct 28 02:19:55 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/key_split_ops_test.py::TestKeySplitOps::test_key_split_op PASSED [ 85%] 
Oct 28 02:19:55 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/lars_test.py::TestLars::test_lars PASSED [ 85%] 
Oct 28 02:19:55 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_brew_wrapper PASSED [ 85%] 
Oct 28 02:19:56 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_grad PASSED [ 85%] 
Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_grad_op PASSED [ 85%] 
Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op PASSED [ 85%] 
Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_c10 PASSED [ 85%] 
Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_c10_preallocated_outputs PASSED [ 85%] 
Oct 28 02:19:57 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_jit FAILED [ 85%] 
Oct 28 02:19:57  
Oct 28 02:19:57 =================================== FAILURES =================================== 
Oct 28 02:19:57 ____________________ TestLayerNormOp.test_layer_norm_op_jit ____________________ 
Oct 28 02:19:57  
Oct 28 02:19:57 self = <caffe2.python.operator_test.layer_norm_op_test.TestLayerNormOp testMethod=test_layer_norm_op_jit> 
Oct 28 02:19:57  
Oct 28 02:19:57     @given(X=hu.tensor(min_dim=2), 
Oct 28 02:19:57 >          eps=st.floats(1e-5, 1e-3), 
Oct 28 02:19:57            elementwise_affine=st.booleans(), 
Oct 28 02:19:57            **hu.gcs) 

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_test2 (9/19)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

RuntimeError: test_autograd failed!
Generated XML report: test-reports\python-unittest\TEST-TestAutogradComplex-20201028015939.xml 
Generated XML report: test-reports\python-unittest\TEST-TestAutogradDeviceTypeCPU-20201028015939.xml 
Generated XML report: test-reports\python-unittest\TEST-TestAutogradDeviceTypeCUDA-20201028015939.xml 
Generated XML report: test-reports\python-unittest\TEST-TestAutogradFunctional-20201028015939.xml 
Generated XML report: test-reports\python-unittest\TEST-TestMultithreadAutograd-20201028015939.xml 
Traceback (most recent call last): 
  File "run_test.py", line 862, in <module> 
    main() 
  File "run_test.py", line 845, in main 
    raise RuntimeError(err_message) 
RuntimeError: test_autograd failed! 
 
(base) circleci@PACKER-5F899127 C:\Users\circleci\project\test>if ERRORLEVEL 1 exit /b 1  
+ cleanup
+ retcode=1
+ set +x

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_jit_legacy_test (10/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:01:10 FAIL [0.003s]: test_ops_bound_in_functional (jit.test_unsupported_ops.TestUnsupportedOps)
Oct 28 03:01:10   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 42, in test_factory_ops_requires_grad_fail 
Oct 28 03:01:10     torch.jit.script(func) 
Oct 28 03:01:10 AssertionError: "Keyword argument requires_grad unknown" does not match "unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:01:10   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 31 
Oct 28 03:01:10         def ones(): 
Oct 28 03:01:10             return torch.ones([2], requires_grad=True) 
Oct 28 03:01:10                    ~~~~~~~~~~ <--- HERE 
Oct 28 03:01:10 " 
Oct 28 03:01:10  
Oct 28 03:01:10 ====================================================================== 
Oct 28 03:01:10 FAIL [0.003s]: test_ops_bound_in_functional (jit.test_unsupported_ops.TestUnsupportedOps) 
Oct 28 03:01:10 ---------------------------------------------------------------------- 
Oct 28 03:01:10 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:01:10   File "/var/lib/jenkins/workspace/test/jit/test_unsupported_ops.py", line 46 
Oct 28 03:01:10         def tensordot(): 
Oct 28 03:01:10             a = torch.arange(60.).reshape(3, 4, 5) 
Oct 28 03:01:10                 ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE 
Oct 28 03:01:10             b = torch.arange(24.).reshape(4, 3, 2) 
Oct 28 03:01:10             torch.tensordot(a, b, dims=([1, 0], [0, 1])) 
Oct 28 03:01:10  
Oct 28 03:01:10  

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_test (11/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:10:30 ERROR [0.006s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd)
Oct 28 03:10:30 	  File "<string>", line 3 
Oct 28 03:10:30 	 
Oct 28 03:10:30 	      def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 03:10:30 	          return self + mat1.mm(mat2) 
Oct 28 03:10:30 	                        ~~~~~~~ <--- HERE 
Oct 28 03:10:30 	 
Oct 28 03:10:30 	      def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 03:10:30  
Oct 28 03:10:30  
Oct 28 03:10:30 ====================================================================== 
Oct 28 03:10:30 ERROR [0.006s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd) 
Oct 28 03:10:30 ---------------------------------------------------------------------- 
Oct 28 03:10:30 Traceback (most recent call last): 
Oct 28 03:10:30   File "test_autograd.py", line 7239, in test_fork_join_in_middle 
Oct 28 03:10:30     @torch.jit.script 
Oct 28 03:10:30   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 940, in script 
Oct 28 03:10:30     qualified_name, ast, _rcb, get_default_args(obj) 
Oct 28 03:10:30 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:10:30   File "<string>", line 19 
Oct 28 03:10:30   return b <= a 
Oct 28 03:10:30 def sub(a : float, b : Tensor) -> Tensor: 

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_test1 (12/19)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

AssertionError: "Argument dims_self" does not match "unknown:0: expecting kind 'variable' but found '.'
                ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE 
            b = torch.arange(24.).reshape(4, 3, 2) 
            torch.tensordot(a, b, dims=([1, 0], [0, 1])) 
 
 
During handling of the above exception, another exception occurred: 
 
Traceback (most recent call last): 
  File "C:\Users\circleci\project\test\jit\test_unsupported_ops.py", line 52, in test_ops_bound_in_functional 
    torch.jit.script(tensordot) 
AssertionError: "Argument dims_self" does not match "unknown:0: expecting kind 'variable' but found '.' 
  File "C:\Users\circleci\project\test\jit\test_unsupported_ops.py", line 46 
        def tensordot(): 
            a = torch.arange(60.).reshape(3, 4, 5) 
                ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE 
            b = torch.arange(24.).reshape(4, 3, 2) 
            torch.tensordot(a, b, dims=([1, 0], [0, 1])) 
" 
 
---------------------------------------------------------------------- 
Ran 2872 tests in 22.177s 

See CircleCI build pytorch_linux_xenial_py3_clang5_mobile_build (13/19)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

Oct 28 01:44:56 what(): unknown:0: expecting kind 'variable' but found '.'
Oct 28 01:44:53 -- Build files have been written to: /var/lib/jenkins/workspace/build_test_custom_build/predictor 
Oct 28 01:44:53 + make 
Oct 28 01:44:53 Scanning dependencies of target Predictor 
Oct 28 01:44:53 [ 50%] Building CXX object CMakeFiles/Predictor.dir/predictor.cpp.o 
Oct 28 01:44:53 [100%] Linking CXX executable Predictor 
Oct 28 01:44:56 [100%] Built target Predictor 
Oct 28 01:44:56 + run_predictor 
Oct 28 01:44:56 + cd /var/lib/jenkins/workspace/build_test_custom_build/predictor 
Oct 28 01:44:56 + ./Predictor /var/lib/jenkins/workspace/build_test_custom_build/MobileNetV2.pt 
Oct 28 01:44:56 terminate called after throwing an instance of 'std::runtime_error' 
Oct 28 01:44:56   what():  unknown:0: expecting kind 'variable' but found '.' 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py(387): _conv_forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py(390): forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py(117): forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py(117): forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 01:44:56 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test1 (14/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:07:57 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:11:3 in
Oct 28 02:07:57     #7 0x55f67b14970b in PyEval_EvalCode /tmp/build/80754af9/python_1599604603603/work/Python/ceval.c:731 
Oct 28 02:07:57     #8 0x55f67b1c9573 in run_mod /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:1025 
Oct 28 02:07:57     #9 0x55f67b1c960c in PyRun_StringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:949 
Oct 28 02:07:57     #10 0x55f67b1c966e in PyRun_SimpleStringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:445 
Oct 28 02:07:57     #11 0x55f67b1cd472 in run_command /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:301 
Oct 28 02:07:57     #12 0x55f67b1cd472 in Py_Main /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:749 
Oct 28 02:07:57     #13 0x55f67b09743d in main /tmp/build/80754af9/python_1599604603603/work/Programs/python.c:69 
Oct 28 02:07:57     #14 0x7fa89f2e383f in __libc_start_main /build/glibc-e6zv40/glibc-2.23/csu/../csu/libc-start.c:291 
Oct 28 02:07:57     #15 0x55f67b176d0a in _start /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/src/glibc-2.12.2/csu/../sysdeps/x86_64/elf/start.S:103 
Oct 28 02:07:57  
Oct 28 02:07:57 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:11:3 in  
Oct 28 02:07:57 + retcode=1 
Oct 28 02:07:57 + set -e 
Oct 28 02:07:57 + return 1 
Oct 28 02:07:57 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX-* ]] 
Oct 28 02:07:57 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX2-* ]] 
Oct 28 02:07:57 + '[' -n https://github.com/pytorch/pytorch/pull/46965 ']' 
Oct 28 02:07:57 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 != *coverage* ]] 
Oct 28 02:07:57 ++ mktemp 
Oct 28 02:07:57 + DETERMINE_FROM=/tmp/tmp.uJtpd5KwBH 
Oct 28 02:07:57 + file_diff_from_base /tmp/tmp.uJtpd5KwBH 

See CircleCI build pytorch_linux_xenial_py3_clang5_mobile_custom_build_dynamic (15/19)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:32:40 what(): unknown:0: expecting kind 'variable' but found '.'
Oct 28 02:32:30 -- Build files have been written to: /var/lib/jenkins/workspace/build_test_custom_build/predictor 
Oct 28 02:32:30 + make 
Oct 28 02:32:30 Scanning dependencies of target Predictor 
Oct 28 02:32:30 [ 50%] Building CXX object CMakeFiles/Predictor.dir/predictor.cpp.o 
Oct 28 02:32:38 [100%] Linking CXX executable Predictor 
Oct 28 02:32:40 [100%] Built target Predictor 
Oct 28 02:32:40 + run_predictor 
Oct 28 02:32:40 + cd /var/lib/jenkins/workspace/build_test_custom_build/predictor 
Oct 28 02:32:40 + ./Predictor /var/lib/jenkins/workspace/build_test_custom_build/MobileNetV2.pt 
Oct 28 02:32:40 terminate called after throwing an instance of 'std::runtime_error' 
Oct 28 02:32:40   what():  unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py(387): _conv_forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py(390): forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py(117): forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py(117): forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(726): _slow_forward 
Oct 28 02:32:40 /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(742): _call_impl 

See CircleCI build pytorch_linux_xenial_py3_clang7_onnx_ort_test1 (16/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_jit FAILED [ 85%]
Oct 28 02:20:51 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/integral_image_ops_test.py::TestIntegralImageOps::test_integral_image_ops PASSED [ 85%] 
Oct 28 02:20:51 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/jsd_ops_test.py::TestJSDOps::test_bernoulli_jsd PASSED [ 85%] 
Oct 28 02:20:51 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/key_split_ops_test.py::TestKeySplitOps::test_key_split_op PASSED [ 85%] 
Oct 28 02:20:51 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/lars_test.py::TestLars::test_lars PASSED [ 85%] 
Oct 28 02:20:51 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_brew_wrapper PASSED [ 85%] 
Oct 28 02:20:52 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_grad PASSED [ 85%] 
Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_grad_op PASSED [ 85%] 
Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op PASSED [ 85%] 
Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_c10 PASSED [ 85%] 
Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_c10_preallocated_outputs PASSED [ 85%] 
Oct 28 02:20:53 ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/operator_test/layer_norm_op_test.py::TestLayerNormOp::test_layer_norm_op_jit FAILED [ 85%] 
Oct 28 02:20:53  
Oct 28 02:20:53 =================================== FAILURES =================================== 
Oct 28 02:20:53 ____________________ TestLayerNormOp.test_layer_norm_op_jit ____________________ 
Oct 28 02:20:53  
Oct 28 02:20:53 self = <caffe2.python.operator_test.layer_norm_op_test.TestLayerNormOp testMethod=test_layer_norm_op_jit> 
Oct 28 02:20:53  
Oct 28 02:20:53     @given(X=hu.tensor(min_dim=2), 
Oct 28 02:20:53 >          eps=st.floats(1e-5, 1e-3), 
Oct 28 02:20:53            elementwise_affine=st.booleans(), 
Oct 28 02:20:53            **hu.gcs) 

See CircleCI build pytorch_linux_bionic_py3_6_clang9_test (17/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 02:15:24 ERROR [0.006s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd)
Oct 28 02:15:24 	  File "<string>", line 3 
Oct 28 02:15:24 	 
Oct 28 02:15:24 	      def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 02:15:24 	          return self + mat1.mm(mat2) 
Oct 28 02:15:24 	                        ~~~~~~~ <--- HERE 
Oct 28 02:15:24 	 
Oct 28 02:15:24 	      def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 02:15:24  
Oct 28 02:15:24  
Oct 28 02:15:24 ====================================================================== 
Oct 28 02:15:24 ERROR [0.006s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd) 
Oct 28 02:15:24 ---------------------------------------------------------------------- 
Oct 28 02:15:24 Traceback (most recent call last): 
Oct 28 02:15:24   File "test_autograd.py", line 7239, in test_fork_join_in_middle 
Oct 28 02:15:24     @torch.jit.script 
Oct 28 02:15:24   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 940, in script 
Oct 28 02:15:24     qualified_name, ast, _rcb, get_default_args(obj) 
Oct 28 02:15:24 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:15:24   File "<string>", line 19 
Oct 28 02:15:24   return b <= a 
Oct 28 02:15:24 def sub(a : float, b : Tensor) -> Tensor: 

See CircleCI build pytorch_doc_test (18/19)

Step: "Doc test" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:00:30 caused by: Connection refused (os error 111)
Oct 28 03:00:30 +++++ extract_trap_cmd 
Oct 28 03:00:30 +++++ printf '%s\n' '' 
Oct 28 03:00:30 ++++ printf '%s\n' cleanup 
Oct 28 03:00:30 +++ trap -- ' 
Oct 28 03:00:30 cleanup' EXIT 
Oct 28 03:00:30 +++ [[ pytorch-linux-xenial-py3.6-gcc5.4-build != *pytorch-win-* ]] 
Oct 28 03:00:30 +++ which sccache 
Oct 28 03:00:30 +++ sccache --stop-server 
Oct 28 03:00:30 Stopping sccache server... 
Oct 28 03:00:30 error: couldn't connect to server 
Oct 28 03:00:30 caused by: Connection refused (os error 111) 
Oct 28 03:00:30 +++ true 
Oct 28 03:00:30 +++ rm /var/lib/jenkins/sccache_error.log 
Oct 28 03:00:30 +++ [[ pytorch-linux-xenial-py3.6-gcc5.4-build == *rocm* ]] 
Oct 28 03:00:30 +++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Oct 28 03:00:30 +++ SCCACHE_IDLE_TIMEOUT=1200 
Oct 28 03:00:30 +++ RUST_LOG=sccache::server=error 
Oct 28 03:00:30 +++ sccache --start-server 
Oct 28 03:00:30 Starting sccache server... 
Oct 28 03:00:30 +++ sccache --zero-stats 
Oct 28 03:00:30 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test1 (19/19)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Oct 28 03:01:34 ERROR [0.005s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd)
Oct 28 03:01:34 	  File "<string>", line 3 
Oct 28 03:01:34 	 
Oct 28 03:01:34 	      def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 03:01:34 	          return self + mat1.mm(mat2) 
Oct 28 03:01:34 	                        ~~~~~~~ <--- HERE 
Oct 28 03:01:34 	 
Oct 28 03:01:34 	      def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 03:01:34  
Oct 28 03:01:34  
Oct 28 03:01:34 ====================================================================== 
Oct 28 03:01:34 ERROR [0.005s]: test_fork_join_in_middle (__main__.TestMultithreadAutograd) 
Oct 28 03:01:34 ---------------------------------------------------------------------- 
Oct 28 03:01:34 Traceback (most recent call last): 
Oct 28 03:01:34   File "test_autograd.py", line 7239, in test_fork_join_in_middle 
Oct 28 03:01:34     @torch.jit.script 
Oct 28 03:01:34   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 940, in script 
Oct 28 03:01:34     qualified_name, ast, _rcb, get_default_args(obj) 
Oct 28 03:01:34 RuntimeError: unknown:0: expecting kind 'variable' but found '.' 
Oct 28 03:01:34   File "<string>", line 19 
Oct 28 03:01:34   return b <= a 
Oct 28 03:01:34 def sub(a : float, b : Tensor) -> Tensor: 

1 job timed out:

  • pytorch_linux_xenial_py3_clang5_asan_test2

❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_bazel_test (1/1)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

Oct 28 02:06:13 unknown file: Failure
Oct 28 02:06:13   File "<string>", line 3 
Oct 28 02:06:13  
Oct 28 02:06:13       def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 02:06:13           return self + mat1.mm(mat2) 
Oct 28 02:06:13                         ~~~~~~~ <--- HERE 
Oct 28 02:06:13  
Oct 28 02:06:13       def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 02:06:13 " thrown in the test body. 
Oct 28 02:06:13 [  FAILED  ] TorchScriptTest.TestTupleArgMatching (6 ms) 
Oct 28 02:06:13 [ RUN      ] TorchScriptTest.TestOptionalArgMatching 
Oct 28 02:06:13 unknown file: Failure 
Oct 28 02:06:13 C++ exception with description "unknown:0: expecting kind 'variable' but found '.' 
Oct 28 02:06:13   File "<string>", line 3 
Oct 28 02:06:13  
Oct 28 02:06:13       def addmm(self: Tensor, mat1: Tensor, mat2: Tensor, beta: number = 1.0, alpha: number = 1.0): 
Oct 28 02:06:13           return self + mat1.mm(mat2) 
Oct 28 02:06:13                         ~~~~~~~ <--- HERE 
Oct 28 02:06:13  
Oct 28 02:06:13       def batch_norm(input : Tensor, running_mean : Optional[Tensor], running_var : Optional[Tensor], training : bool, momentum : float, eps : float) -> Tensor: 
Oct 28 02:06:13 " thrown in the test body. 
Oct 28 02:06:13 [  FAILED  ] TorchScriptTest.TestOptionalArgMatching (7 ms) 

ci.pytorch.org: 2 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 11 times.

@eellison
Copy link
Contributor

Hi, was looking through notifications and saw this. I have a PR out for list() #42382 that was previously accepted and landed but got reverted due to a mysterious error in a slow test. I can try to reland it soon. Relevant issue: #40869. Sorry for duplicate.

I think dict() is also best handled as a desguaring to a dict comprehension (which hasn't been implemented yet).

@gmagogsfm
Copy link
Contributor

Is this still needed? maybe we should close it if not.

@ansley ansley closed this Dec 3, 2020
@ansley ansley deleted the gh/ansleyadelaide/14/head branch December 30, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants