<p dir="auto">If you have a question or would like help and support, please ask at our<br>
<a href="https://discuss.pytorch.org/" rel="nofollow">forums</a>.</p>
<p dir="auto">If you are submitting a feature request, please preface the title with [feature request].<br>
If you are submitting a bug report, please fill in the following details.</p>
<h2 dir="auto">Issue description</h2>
<p dir="auto">I've built pytorch from source after <code class="notranslate">git checkout v0.4.1</code>, however, the version is 0.5.0.<br>
Tag v0.4.1 leads to 0.5.0a0</p>
<h2 dir="auto">Code example</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'0.5.0a0+a24163a'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'0.5.0a0+a24163a'
</code></pre></div>
<h2 dir="auto">System Info</h2>
<p dir="auto">Collecting environment information...<br>
PyTorch version: 0.5.0a0+a24163a<br>
Is debug build: No<br>
CUDA used to build PyTorch: 9.2.148</p>
<p dir="auto">OS: Ubuntu 18.04.1 LTS<br>
GCC version: (Ubuntu 7.3.0-16ubuntu3) 7.3.0<br>
CMake version: version 3.11.1</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: Yes<br>
CUDA runtime version: 9.2.148<br>
GPU models and configuration: GPU 0: GeForce GTX 1070 Ti<br>
Nvidia driver version: 396.37<br>
cuDNN version: Probably one of the following:<br>
/usr/local/cuda-9.2/lib64/libcudnn.so.7.2.1<br>
/usr/local/cuda-9.2/lib64/libcudnn_static.a</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] Could not collect<br>
[conda] magma-cuda90              2.3.0                         1    pytorch<br>
[conda] torch                     0.5.0a0+a24163a           </p>
<h2 dir="auto">Issue description</h2>
<p dir="auto">The <code class="notranslate">__version__</code> provided by Pytorch is wrong</p>
<p dir="auto">See <a href="https://github.com/pytorch/pytorch/blob/v0.4.1/setup.py#L246">this line</a></p>