<p dir="auto">After installing the prerequisites (and setting the following environment variables):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export NO_CUDA=1
export NO_DISTRIBUTED=1
export NO_MKLDNN=1 
export NO_NNPACK=1
export NO_QNNPACK=1"><pre class="notranslate"><code class="notranslate">export NO_CUDA=1
export NO_DISTRIBUTED=1
export NO_MKLDNN=1 
export NO_NNPACK=1
export NO_QNNPACK=1
</code></pre></div>
<p dir="auto">I could not complete the build with the following command:</p>
<p dir="auto"><code class="notranslate">make -VERBOSE=1</code></p>
<p dir="auto">The tail of the error messages is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/pi/projects/pytorch/build/confu-srcs/pthreadpool/include/pthreadpool.h:223:2: warning: ‘pthreadpool_function_4d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_4d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccPqf5ia.s: Assembler messages:
/tmp/ccPqf5ia.s:605: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
/tmp/ccPqf5ia.s:855: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
...
/tmp/ccPqf5ia.s:2206: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
/tmp/ccPqf5ia.s:2530: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
make[2]: *** [confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/build.make:76: confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o] Error 1
make[2]: Leaving directory '/home/pi/projects/pytorch/build'
make[1]: *** [CMakeFiles/Makefile2:517: confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/all] Error 2
make[1]: Leaving directory '/home/pi/projects/pytorch/build'
make: *** [Makefile:141: all] Error 2
pi@raspbari3:~/projects/pytorch/build $ "><pre class="notranslate"><code class="notranslate">/home/pi/projects/pytorch/build/confu-srcs/pthreadpool/include/pthreadpool.h:223:2: warning: ‘pthreadpool_function_4d_tiled_t’ is deprecated [-Wdeprecated-declarations]
  pthreadpool_function_4d_tiled_t function,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccPqf5ia.s: Assembler messages:
/tmp/ccPqf5ia.s:605: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
/tmp/ccPqf5ia.s:855: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
...
/tmp/ccPqf5ia.s:2206: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
/tmp/ccPqf5ia.s:2530: Error: immediate expression requires a # prefix -- `orr r3,0x1000000'
make[2]: *** [confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/build.make:76: confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o] Error 1
make[2]: Leaving directory '/home/pi/projects/pytorch/build'
make[1]: *** [CMakeFiles/Makefile2:517: confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/all] Error 2
make[1]: Leaving directory '/home/pi/projects/pytorch/build'
make: *** [Makefile:141: all] Error 2
pi@raspbari3:~/projects/pytorch/build $ 
</code></pre></div>
<p dir="auto">The platform summary is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
$ uname -a
Linux raspbari3 4.19.66+ #1253 Thu Aug 15 11:37:30 BST 2019 armv6l GNU/Linux
$"><pre class="notranslate"><code class="notranslate">$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
$ uname -a
Linux raspbari3 4.19.66+ #1253 Thu Aug 15 11:37:30 BST 2019 armv6l GNU/Linux
$
</code></pre></div>
<p dir="auto">I understand that trying to install <strong>pytorch</strong> on RPi0W detracts but I'm willing to be an able-bodied tester since I have quite a few Raspberry Pi Zero W boards where I need <strong>pytorch</strong> to work. The RPi0 boards have many other packages (for vision/image/ML) working and I was hoping to install <strong>pytorch</strong> too. Any help will be sincerely appreciated.</p>
<p dir="auto">Kind regards.</p>
<h2 dir="auto">Issue description</h2>
<p dir="auto">There's a recent change in jit scripting path for nn.interpolate operator. After aten::__interpolate operator is removed and the scriptable nn.interpolate module has become scriptable as part of this PR: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="578241668" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/34514" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/34514/hovercard" href="https://github.com/pytorch/pytorch/pull/34514">#34514</a>, the graph new graph is exported using hundreds of extra nodes.<br>
This means that the the jit graph for interpolate op is now scripting the whole module and creates the inflated graph below for a single op:<br>
torch.nn.functional.interpolate(x, mode="trilinear", size=(4, 4, 6))<br>
<a href="https://github.com/pytorch/pytorch/files/4330624/graph.txt">graph.txt</a></p>
<p dir="auto">Currently, this change broke onnx export of scripted nn.interpolate module, and the following tests are disable:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/pytorch/pytorch/blob/8e8a37d7464638efef2bc0c372712b57e4b4f678/test/onnx/test_pytorch_onnx_onnxruntime.py#L1294">pytorch/test/onnx/test_pytorch_onnx_onnxruntime.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 1294
      in
      <a data-pjax="true" class="commit-tease-sha" href="/pytorch/pytorch/commit/8e8a37d7464638efef2bc0c372712b57e4b4f678">8e8a37d</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L1294" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1294"></td>
          <td id="LC1294" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">unittest</span>.<span class="pl-en">skipIf</span>(<span class="pl-c1">True</span>, <span class="pl-s">"Interpolate script NYI"</span>)</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">As part of this change, onnx export of torchvision Keypoint RCNN module is also broken.<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/pytorch/pytorch/blob/8e8a37d7464638efef2bc0c372712b57e4b4f678/test/onnx/test_pytorch_onnx_onnxruntime.py#L349">pytorch/test/onnx/test_pytorch_onnx_onnxruntime.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 349
      in
      <a data-pjax="true" class="commit-tease-sha" href="/pytorch/pytorch/commit/8e8a37d7464638efef2bc0c372712b57e4b4f678">8e8a37d</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L349" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="349"></td>
          <td id="LC349" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">test_mask_rcnn</span>(<span class="pl-s1">self</span>): </td>
        </tr>
    </tbody></table>
  </div>
</div>
<br>
<a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fcircleci.com%2Fapi%2Fv1.1%2Fproject%2Fgithub%2Fpytorch%2Fpytorch%2F4791771%2Foutput%2F105%2F0%3Ffile%3Dtrue%26allocation-id%3D5e6ab6cf58b6cb1d3d495d0d-0-build%2F61B5E26C%26fbclid%3DIwAR0kYcxY742VnXh6lpnH4FckYIJAhE03bp8vcRWdS-Yh4PsylwBZBFA5Dfk&amp;h=AT0tPobGkR1UpwhdxgJ3JEH7udDQRrgMW0GNWD7Smsq4_fqZD8DJnCqLT06ppG-kwzXrRA6k00KS40CiaaAjFtxblyXg8JwjmVqv7F0XPTD_hvQhUnSGj8lv5Zt5JDBfjDWZtTtacm8" rel="nofollow">https://l.facebook.com/l.php?u=https%3A%2F%2Fcircleci.com%2Fapi%2Fv1.1%2Fproject%2Fgithub%2Fpytorch%2Fpytorch%2F4791771%2Foutput%2F105%2F0%3Ffile%3Dtrue%26allocation-id%3D5e6ab6cf58b6cb1d3d495d0d-0-build%2F61B5E26C%26fbclid%3DIwAR0kYcxY742VnXh6lpnH4FckYIJAhE03bp8vcRWdS-Yh4PsylwBZBFA5Dfk&amp;h=AT0tPobGkR1UpwhdxgJ3JEH7udDQRrgMW0GNWD7Smsq4_fqZD8DJnCqLT06ppG-kwzXrRA6k00KS40CiaaAjFtxblyXg8JwjmVqv7F0XPTD_hvQhUnSGj8lv5Zt5JDBfjDWZtTtacm8</a><p></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/houseroad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/houseroad">@houseroad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spandantiwari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spandantiwari">@spandantiwari</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lara-hdr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lara-hdr">@lara-hdr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BowenBao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BowenBao">@BowenBao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/neginraoof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/neginraoof">@neginraoof</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eellison/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eellison">@eellison</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>