Skip to content

Commit 421c0a1

Browse files
authored
Update torch.Generator.html
Adds additional text to torch.generator.
1 parent 01a56df commit 421c0a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎docs/stable/generated/torch.Generator.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339

340340
<div class="section" id="generator">
341341
<h1>Generator<a class="headerlink" href="#generator" title="Permalink to this headline"></a></h1>
342+
<p>PyTorch provides methods to create random number generation (RNG) as part of your PyTorch program. <cite>torch.generator</cite> is the primary API to use for standard <em>in the clear</em> application where there is no application of privacy preserving techniques such as differential privacy. To create a cryptographically secure RNG, please use torchcsprng which can be found in the repo <a class="reference external" href="https://github.com/pytorch/csprng">here</a>.</p>
342343
<dl class="class">
343344
<dt id="torch.Generator">
344345
<em class="property">class </em><code class="sig-prename descclassname">torch.</code><code class="sig-name descname">Generator</code><span class="sig-paren">(</span><em class="sig-param">device='cpu'</em><span class="sig-paren">)</span> &#x2192; Generator<a class="headerlink" href="#torch.Generator" title="Permalink to this definition"></a></dt>
@@ -758,4 +759,4 @@ <h2>Resources</h2>
758759
})
759760
</script>
760761
</body>
761-
</html>
762+
</html>

0 commit comments

Comments
 (0)