No response when creating model

username: netqyq
cooked: <p>I’m using JupyterLab excute my ipynb file. here is the code:</p><aside class="onebox githubblob" data-onebox-src="https://github.com/book-source/PyTorch-for-Deep-Learning-and-Computer-Vision/blob/master/Perceptron.ipynb">
  <header class="source">

      <a href="https://github.com/book-source/PyTorch-for-Deep-Learning-and-Computer-Vision/blob/master/Perceptron.ipynb" target="_blank" rel="noopener nofollow ugc">github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://github.com/book-source/PyTorch-for-Deep-Learning-and-Computer-Vision/blob/master/Perceptron.ipynb" target="_blank" rel="noopener nofollow ugc">book-source/PyTorch-for-Deep-Learning-and-Computer-Vision/blob/master/Perceptron.ipynb</a></h4>


      <pre><code class="lang-ipynb">{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "colab": {},
    "colab_type": "code",
    "id": "Ryap-Zb2pFEY"
   },
   "outputs": [],
   "source": [
    "import torch\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "import torch.nn as nn\n",
    "from sklearn import datasets"
   ]
  },
  {
</code></pre>



  This file has been truncated. <a href="https://github.com/book-source/PyTorch-for-Deep-Learning-and-Computer-Vision/blob/master/Perceptron.ipynb" target="_blank" rel="noopener nofollow ugc">show original</a>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>When it exectues this line of code, it can not proceed.</p>
<p>I don’t know why.</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/d/5/d566d40710358ed28cce9073752db374c2d8ae2b.png" data-download-href="https://discuss.pytorch.org/uploads/default/d566d40710358ed28cce9073752db374c2d8ae2b" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/d/5/d566d40710358ed28cce9073752db374c2d8ae2b_2_690x472.png" alt="image" data-base62-sha1="urQ0BcC981vhyHC2qklkHL2F0yT" width="690" height="472" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/d/5/d566d40710358ed28cce9073752db374c2d8ae2b_2_690x472.png, https://discuss.pytorch.org/uploads/default/optimized/3X/d/5/d566d40710358ed28cce9073752db374c2d8ae2b_2_1035x708.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/d/5/d566d40710358ed28cce9073752db374c2d8ae2b.png 2x" data-dominant-color="EEF0F1"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1086×744 76.3 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<pre><code class="lang-auto">model = Model(2, 1)
</code></pre>

username: ptrblck
cooked: <p>Which PyTorch version are you using? Have you updated it recently or changed something else on your system?</p>

username: netqyq
cooked: <p>Torch version is 1.1.0, I didn’t change anything. The code can work in Colab, but not on my MAC.</p>

username: ptrblck
cooked: <p>Was the code working before on your MAC?<br>
Could you create a new conda environment and install the latest release (<code>1.3.0</code>)?</p>

username: netqyq
cooked: <p>This is the first time I run this code, I am upgrading my torch to 1.3.0, after I tied on 1.3.0, I will reply you.</p>

username: netqyq
cooked: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> Wow! It worked on 1.3.0, thank you very much!</p>