|
219 | 219 | <div class="pytorch-left-menu-search"> |
220 | 220 |
|
221 | 221 | <div class="version"> |
222 | | - <a href='https://pytorch.org/docs/versions.html'>master (1.13.0a0+gita6c792d ) ▼</a> |
| 222 | + <a href='https://pytorch.org/docs/versions.html'>master (1.13.0a0+gitb6b8803 ) ▼</a> |
223 | 223 | </div> |
224 | 224 |
|
225 | 225 |
|
@@ -920,14 +920,14 @@ <h1>Source code for torch</h1><div class="highlight"><pre> |
920 | 920 | <span class="sd"> >>> torch.use_deterministic_algorithms(True)</span> |
921 | 921 |
|
922 | 922 | <span class="sd"> # Forward mode nondeterministic error</span> |
923 | | -<span class="sd"> >>> torch.randn(10).index_copy(0, torch.tensor([0]), torch.randn(1))</span> |
| 923 | +<span class="sd"> >>> torch.randn(10, device='cuda').kthvalue(0)</span> |
924 | 924 | <span class="sd"> ...</span> |
925 | | -<span class="sd"> RuntimeError: index_copy does not have a deterministic implementation...</span> |
| 925 | +<span class="sd"> RuntimeError: kthvalue CUDA does not have a deterministic implementation...</span> |
926 | 926 |
|
927 | 927 | <span class="sd"> # Backward mode nondeterministic error</span> |
928 | | -<span class="sd"> >>> torch.randn(10, requires_grad=True, device='cuda').index_select(0, torch.tensor([0], device='cuda')).backward()</span> |
| 928 | +<span class="sd"> >>> torch.nn.AvgPool3d(1)(torch.randn(3, 4, 5, 6, requires_grad=True).cuda()).sum().backward()</span> |
929 | 929 | <span class="sd"> ...</span> |
930 | | -<span class="sd"> RuntimeError: index_add_cuda_ does not have a deterministic implementation...</span> |
| 930 | +<span class="sd"> RuntimeError: avg_pool3d_backward_cuda does not have a deterministic implementation...</span> |
931 | 931 | <span class="sd"> """</span> |
932 | 932 | <span class="n">_C</span><span class="o">.</span><span class="n">_set_deterministic_algorithms</span><span class="p">(</span><span class="n">mode</span><span class="p">,</span> <span class="n">warn_only</span><span class="o">=</span><span class="n">warn_only</span><span class="p">)</span></div> |
933 | 933 |
|
|
0 commit comments