<p dir="auto">Error messages are too abstract..<br>
Link to circleci log: <a href="https://app.circleci.com/jobs/github/pytorch/pytorch/4513748" rel="nofollow">https://app.circleci.com/jobs/github/pytorch/pytorch/4513748</a><br>
PR doesn't seem to be related to the failure: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="566045225" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/33409" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/33409/hovercard" href="https://github.com/pytorch/pytorch/pull/33409">#33409</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_abs_cpu (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper
    fn(*args, **kwargs)
  File &quot;test_jit_fuser.py&quot;, line 79, in test_abs_cpu
    self._test_fused_abs()
  File &quot;test_jit_fuser.py&quot;, line 74, in _test_fused_abs
    self.assertAllFused(func.graph_for(a))
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for
    self(*args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

======================================================================

"><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: test_abs_cpu (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py", line 592, in wrapper
    fn(*args, **kwargs)
  File "test_jit_fuser.py", line 79, in test_abs_cpu
    self._test_fused_abs()
  File "test_jit_fuser.py", line 74, in _test_fused_abs
    self.assertAllFused(func.graph_for(a))
  File "C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py", line 2094, in _graph_for
    self(*args, **kwargs)
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

======================================================================


</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a></p>
<h2 dir="auto">🐛 Bug</h2>

<p dir="auto">Error text:</p>
<div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_abs_cpu (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper
    fn(*args, **kwargs)
  File &quot;test_jit_fuser.py&quot;, line 79, in test_abs_cpu
    self._test_fused_abs()
  File &quot;test_jit_fuser.py&quot;, line 74, in _test_fused_abs
    self.assertAllFused(func.graph_for(a))
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for
    self(*args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

======================================================================
ERROR: test_chunk_correctness (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper
    fn(*args, **kwargs)
  File &quot;test_jit_fuser.py&quot;, line 223, in test_chunk_correctness
    return self._test_chunk_correctness(self, 'cpu')
  File &quot;test_jit_fuser.py&quot;, line 218, in _test_chunk_correctness
    self.checkScript(fn, [tensor])
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 398, in checkScript
    opt_script_outputs = scripted_fn(*recording_inputs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

======================================================================
ERROR: test_scalar (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper
    fn(*args, **kwargs)
  File &quot;test_jit_fuser.py&quot;, line 851, in test_scalar
    ge = self.checkScript(fn, (x, y))
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 398, in checkScript
    opt_script_outputs = scripted_fn(*recording_inputs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

======================================================================
ERROR: test_where_and_typing (__main__.TestFuser)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper
    fn(*args, **kwargs)
  File &quot;test_jit_fuser.py&quot;, line 906, in test_where_and_typing
    self.assertAllFused(script_f.graph_for(x, y), except_for={'prim::TupleConstruct'})
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for
    self(*args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call
    return prof_callable(func_call, *args, **kwargs)
  File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable
    return callable(*args, **kwargs)
RuntimeError: Caught an unknown exception!

----------------------------------------------------------------------
Ran 46 tests in 11.883s

FAILED (errors=4, skipped=10)
Traceback (most recent call last):
  File &quot;run_test.py&quot;, line 486, in &lt;module&gt;
    main()
  File &quot;run_test.py&quot;, line 479, in main
    raise RuntimeError(message)
RuntimeError: test_jit_fuser failed!"><pre class="notranslate">======================================================================
<span class="pl-en">ERROR</span>: <span class="pl-s">test_abs_cpu (__main__.TestFuser)</span>
----------------------------------------------------------------------
Traceback (most recent call last):
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span>
    fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">79</span>, in <span class="pl-en">test_abs_cpu</span>
    <span class="pl-c1">self</span>._test_fused_abs()
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">74</span>, in <span class="pl-en">_test_fused_abs</span>
    <span class="pl-c1">self</span>.assertAllFused(func.graph_for(a))
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py"</span>, line <span class="pl-c1">2094</span>, in <span class="pl-en">_graph_for</span>
    <span class="pl-c1">self</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span>
    <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span>
    <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
<span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span>

======================================================================
<span class="pl-en">ERROR</span>: <span class="pl-s">test_chunk_correctness (__main__.TestFuser)</span>
----------------------------------------------------------------------
Traceback (most recent call last):
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span>
    fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">223</span>, in <span class="pl-en">test_chunk_correctness</span>
    <span class="pl-k">return</span> <span class="pl-c1">self</span>._test_chunk_correctness(<span class="pl-c1">self</span>, <span class="pl-s"><span class="pl-pds">'</span>cpu<span class="pl-pds">'</span></span>)
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">218</span>, in <span class="pl-en">_test_chunk_correctness</span>
    <span class="pl-c1">self</span>.checkScript(fn, [tensor])
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">398</span>, in <span class="pl-en">checkScript</span>
    opt_script_outputs <span class="pl-k">=</span> scripted_fn(<span class="pl-k">*</span>recording_inputs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span>
    <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span>
    <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
<span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span>

======================================================================
<span class="pl-en">ERROR</span>: <span class="pl-s">test_scalar (__main__.TestFuser)</span>
----------------------------------------------------------------------
Traceback (most recent call last):
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span>
    fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">851</span>, in <span class="pl-en">test_scalar</span>
    ge <span class="pl-k">=</span> <span class="pl-c1">self</span>.checkScript(fn, (x, y))
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">398</span>, in <span class="pl-en">checkScript</span>
    opt_script_outputs <span class="pl-k">=</span> scripted_fn(<span class="pl-k">*</span>recording_inputs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span>
    <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span>
    <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
<span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span>

======================================================================
<span class="pl-en">ERROR</span>: <span class="pl-s">test_where_and_typing (__main__.TestFuser)</span>
----------------------------------------------------------------------
Traceback (most recent call last):
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span>
    fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">906</span>, in <span class="pl-en">test_where_and_typing</span>
    <span class="pl-c1">self</span>.assertAllFused(script_f.graph_for(x, y), <span class="pl-v">except_for</span><span class="pl-k">=</span>{<span class="pl-s"><span class="pl-pds">'</span>prim::TupleConstruct<span class="pl-pds">'</span></span>})
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py"</span>, line <span class="pl-c1">2094</span>, in <span class="pl-en">_graph_for</span>
    <span class="pl-c1">self</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span>
    <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
  File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span>
    <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
<span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span>

----------------------------------------------------------------------
Ran 46 tests in 11.883s

FAILED (errors=4, skipped=10)
Traceback (most recent call last):
  File <span class="pl-s">"run_test.py"</span>, line <span class="pl-c1">486</span>, in <span class="pl-en">&lt;module&gt;</span>
    main()
  File <span class="pl-s">"run_test.py"</span>, line <span class="pl-c1">479</span>, in <span class="pl-en">main</span>
    <span class="pl-k">raise</span> <span class="pl-c1">RuntimeError</span>(message)
<span class="pl-en">RuntimeError</span>: <span class="pl-s">test_jit_fuser failed!</span></pre></div>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>python setup.py build</li>
<li>python run_test,py -i jit_fuser</li>
</ol>

<h2 dir="auto">Expected behavior</h2>

<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): master</li>
<li>OS (e.g., Linux): Windows</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li>
<li>Build command you used (if compiling from source): source</li>
<li>Python version: 3.6</li>
<li>CUDA/cuDNN version: 10.1</li>
<li>GPU models and configuration: Tesla P4</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>

<p dir="auto">This is likely due to the AVX512 auto vectorizer supported in the latest build of VS 2019. I'll try to figure out how to correctly detect whether it is supported on a client machine.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a></p>