title: How to tell PyTorch to not use the GPU?
body: <p>I want to do some timing comparisons between CPU &amp; GPU as well as some profiling and would like to know if there's a way to tell <a href="/questions/tagged/pytorch" class="post-tag" title="show questions tagged &#39;pytorch&#39;" rel="tag">pytorch</a> to not use the GPU and instead use the CPU only? I realize I could install another CPU-only <a href="/questions/tagged/pytorch" class="post-tag" title="show questions tagged &#39;pytorch&#39;" rel="tag">pytorch</a>, but hoping there's an easier way.</p>