<p dir="auto">mac 10.12<br>
cuda 9<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1415418/31933120-c5c716e4-b8da-11e7-9a0d-13b62603b9b6.png"><img src="https://user-images.githubusercontent.com/1415418/31933120-c5c716e4-b8da-11e7-9a0d-13b62603b9b6.png" alt="image" style="max-width: 100%;"></a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="torch/csrc/autograd/generated/VariableType.cpp:381:22: error: call to 'recordTrace' is ambiguous
      jit::Node *n = jit::tracer::recordTrace( &quot;fill_&quot;, { self }, self );
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:262:14: note: candidate function
inline Node* recordTrace(std::string op, std::initializer_list&lt;Variable&gt; inputs, const Variable&amp; output) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:265:14: note: candidate function
inline Node* recordTrace(std::string op, std::initializer_list&lt;Variable&gt; inputs, const std::tuple&lt;Variable, Variable&gt;&amp; outputs) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:268:14: note: candidate function
inline Node* recordTrace(std::string op, std::initializer_list&lt;Variable&gt; inputs, const std::tuple&lt;Variable, Variable, Variable&gt;&amp; outputs) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:271:14: note: candidate function
inline Node* recordTrace(std::string op, at::TensorList inputs, const Variable&amp; output) {"><pre class="notranslate">torch/csrc/autograd/generated/VariableType.cpp:381:22: error: call to <span class="pl-s"><span class="pl-pds">'</span>recordTrace<span class="pl-pds">'</span></span> is ambiguous
      jit::Node <span class="pl-k">*</span>n = jit::tracer::recordTrace( <span class="pl-s"><span class="pl-pds">"</span>fill_<span class="pl-pds">"</span></span>, { self }, self )<span class="pl-k">;</span>
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:262:14: note: candidate function
inline Node<span class="pl-k">*</span> recordTrace(std::string op, std::initializer_list<span class="pl-k">&lt;</span>Variable<span class="pl-k">&gt;</span> inputs, const Variable<span class="pl-k">&amp;</span> output) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:265:14: note: candidate function
inline Node<span class="pl-k">*</span> recordTrace(std::string op, std::initializer_list<span class="pl-k">&lt;</span>Variable<span class="pl-k">&gt;</span> inputs, const std::tuple<span class="pl-k">&lt;</span>Variable, Variable<span class="pl-k">&gt;&amp;</span> outputs) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:268:14: note: candidate function
inline Node<span class="pl-k">*</span> recordTrace(std::string op, std::initializer_list<span class="pl-k">&lt;</span>Variable<span class="pl-k">&gt;</span> inputs, const std::tuple<span class="pl-k">&lt;</span>Variable, Variable, Variable<span class="pl-k">&gt;&amp;</span> outputs) {
             ^
/Users/hangzhang/pytorch/torch/csrc/jit/tracer.h:271:14: note: candidate function
inline Node<span class="pl-k">*</span> recordTrace(std::string op, at::TensorList inputs, const Variable<span class="pl-k">&amp;</span> output) {</pre></div>
<p dir="auto">when executing:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/anaconda/include -arch x86_64 -I/anaconda/include -arch x86_64 -I/usr/local/cuda/include -I/Users/hangzhang/pytorch -I/Users/hangzhang/pytorch/torch/csrc -I/Users/hangzhang/pytorch/torch/lib/pybind11/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/TH -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THPP -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THNN -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/ATen -I/anaconda/lib/python3.6/site-packages/numpy/core/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THD -I/usr/local/cuda/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THCUNN -I/anaconda/include/python3.6m -c torch/csrc/autograd/generated/python_nn_functions.cpp -o build/temp.macosx-10.7-x86_64-3.6/torch/csrc/autograd/generated/python_nn_functions.o -D_THP_CORE -std=c++11 -Wno-write-strings -fno-strict-aliasing -Wno-missing-braces -DWITH_NUMPY -DWITH_DISTRIBUTED -DWITH_CUDA -DCUDA_LIB_PATH=/usr/local/cuda/lib -DWITH_CUDNN"><pre class="notranslate">clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/anaconda/include -arch x86_64 -I/anaconda/include -arch x86_64 -I/usr/local/cuda/include -I/Users/hangzhang/pytorch -I/Users/hangzhang/pytorch/torch/csrc -I/Users/hangzhang/pytorch/torch/lib/pybind11/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/TH -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THPP -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THNN -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/ATen -I/anaconda/lib/python3.6/site-packages/numpy/core/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THD -I/usr/local/cuda/include -I/Users/hangzhang/pytorch/torch/lib/tmp_install/include/THCUNN -I/anaconda/include/python3.6m -c torch/csrc/autograd/generated/python_nn_functions.cpp -o build/temp.macosx-10.7-x86_64-3.6/torch/csrc/autograd/generated/python_nn_functions.o -D_THP_CORE -std=c++11 -Wno-write-strings -fno-strict-aliasing -Wno-missing-braces -DWITH_NUMPY -DWITH_DISTRIBUTED -DWITH_CUDA -DCUDA_LIB_PATH=/usr/local/cuda/lib -DWITH_CUDNN</pre></div>