<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>

<p dir="auto"><code class="notranslate">python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack</code></p>
<p dir="auto">when generating and displaying big tensors.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.0.1.post2'
&gt;&gt;&gt; torch.ones(10000)
python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
$"><pre class="notranslate"><code class="notranslate">$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.0.1.post2'
&gt;&gt;&gt; torch.ones(10000)
python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
$
</code></pre></div>
<h2 dir="auto">Env</h2>
<ul dir="auto">
<li>PyTorch 1.0.1.post2 installed via pip. cuda 9 (but same bug without cuda)</li>
<li>Linux os</li>
<li>Python 3.6.0</li>
</ul>
<p dir="auto">Python 3.6.0 (default, Nov 17 2017, 11:43:46)<br>
[GCC 4.8.4] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">import torch<br>
torch.<strong>version</strong><br>
'1.0.0'<br>
m=torch.randn(2,3)<br>
m<br>
tensor([[-0.3711,  0.5104, -0.8859],<br>
[-0.5211, -0.6502, -0.5249]])<br>
m[:,1]=1<br>
<strong>python: symbol lookup error: /home/slhome/sz128/ve3_cpu/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack</strong></p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">I just installed pytorch 1.0.0 by "pip3 install <a href="http://download.pytorch.org/whl/cu80/torch-1.0.0-cp36-cp36m-linux_x86_64.whl" rel="nofollow">http://download.pytorch.org/whl/cu80/torch-1.0.0-cp36-cp36m-linux_x86_64.whl</a> &amp;&amp; pip3 install torchvision" in a new virtualenv.</p>