<p dir="auto">I follow the introduction and happened to this error.<br>
cuda<code class="notranslate">10</code>, cudnn<code class="notranslate">7</code>, install pytorch by pip.</p>
<p dir="auto">however, when I check by</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; torch.utils.tensorboard import SummaryWriter"><pre class="notranslate"><code class="notranslate">&gt; torch.utils.tensorboard import SummaryWriter
</code></pre></div>
<p dir="auto">, it is all right.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.7.3 | packaged by conda-forge | (default, Jul  1 2019, 21:52:21) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; from torch.utils.tensorboard import SummaryWriter
&gt;&gt;&gt; "><pre class="notranslate"><code class="notranslate">Python 3.7.3 | packaged by conda-forge | (default, Jul  1 2019, 21:52:21) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; from torch.utils.tensorboard import SummaryWriter
&gt;&gt;&gt; 
</code></pre></div>
<p dir="auto">but when I use</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; tensorboard --logdir=runs, it happens to this error:

`Traceback (most recent call last):
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/bin/tensorboard&quot;, line 10, in &lt;module&gt;
    sys.exit(run_main())
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/main.py&quot;, line 64, in run_main
    app.run(tensorboard.main, flags_parser=tensorboard.configure)
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py&quot;, line 300, in run
    _run_main(main, args)
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py&quot;, line 251, in _run_main
    sys.exit(main(argv))
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py&quot;, line 228, in main
    server = self._make_server()
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py&quot;, line 309, in _make_server
    self.assets_zip_provider)
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py&quot;, line 161, in standard_tensorboard_wsgi
    reload_task)
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py&quot;, line 194, in TensorBoardWSGIApp
    return TensorBoardWSGI(plugins, path_prefix)
  File &quot;/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py&quot;, line 245, in __init__
    raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector`"><pre class="notranslate"><code class="notranslate">&gt; tensorboard --logdir=runs, it happens to this error:

`Traceback (most recent call last):
  File "/home/kingsoft/anaconda3/envs/liubiao2/bin/tensorboard", line 10, in &lt;module&gt;
    sys.exit(run_main())
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/main.py", line 64, in run_main
    app.run(tensorboard.main, flags_parser=tensorboard.configure)
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py", line 228, in main
    server = self._make_server()
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py", line 309, in _make_server
    self.assets_zip_provider)
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 161, in standard_tensorboard_wsgi
    reload_task)
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 194, in TensorBoardWSGIApp
    return TensorBoardWSGI(plugins, path_prefix)
  File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 245, in __init__
    raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector`
</code></pre></div>
<p dir="auto">in-place operations over ranges with overlap can lead to unexpected results.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# e.g., attempting to convert a time series into deltas:
&gt;&gt;&gt; a=torch.tensor([ 10, 11, 12, 13, 14, 13, 12, 11], dtype=torch.float )
&gt;&gt;&gt; a[:len(a)-1]
tensor([10., 11., 12., 13., 14., 13., 12.])
&gt;&gt;&gt; a[1:]
tensor([11., 12., 13., 14., 13., 12., 11.])
&gt;&gt;&gt; a[1:]/a[:len(a)-1]
tensor([1.1000, 1.0909, 1.0833, 1.0769, 0.9286, 0.9231, 0.9167])
&gt;&gt;&gt; a[1:] /= a[:len(a)-1]
&gt;&gt;&gt; a
tensor([10.0000,  1.1000, 10.9091,  1.1917, 11.7483,  1.1065, 10.8445,  1.0143])"><pre class="notranslate"><code class="notranslate"># e.g., attempting to convert a time series into deltas:
&gt;&gt;&gt; a=torch.tensor([ 10, 11, 12, 13, 14, 13, 12, 11], dtype=torch.float )
&gt;&gt;&gt; a[:len(a)-1]
tensor([10., 11., 12., 13., 14., 13., 12.])
&gt;&gt;&gt; a[1:]
tensor([11., 12., 13., 14., 13., 12., 11.])
&gt;&gt;&gt; a[1:]/a[:len(a)-1]
tensor([1.1000, 1.0909, 1.0833, 1.0769, 0.9286, 0.9231, 0.9167])
&gt;&gt;&gt; a[1:] /= a[:len(a)-1]
&gt;&gt;&gt; a
tensor([10.0000,  1.1000, 10.9091,  1.1917, 11.7483,  1.1065, 10.8445,  1.0143])
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">we should probably raise an error pointing the user to the out-of-place operation.</p>