title: `torch.cuda.Event()` throws error `TypeError: object.__new__() takes exactly one argument (the type to instantiate)`
body: <p>I'm trying to measure the time of some code in torch, but am unable to instantiate <code>torch.cuda.Event</code>. The <a href="https://pytorch.org/docs/stable/generated/torch.cuda.Event.html" rel="nofollow noreferrer">documentation</a> doesn't suggest that any parameters are needed, and the same exact line is working on a different machine.</p>
  <p>Uninstalling and reinstalling torch (using <code>pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113</code> on Windows 10) didn't solve the problem.</p>
  <p>Here's the error that I'm getting:</p>
  <pre><code>Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
  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.cuda.Event(enable_timing=True)
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Users\john\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\cuda\streams.py&quot;, line 138, in __new__
      return super(Event, cls).__new__(
  TypeError: object.__new__() takes exactly one argument (the type to instantiate)
  </code></pre>
  <p>I'll appreaciate any help here!</p>