Skip to content

Commit

Permalink
improved docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leao authored and Eduardo Leao committed Aug 1, 2024
1 parent 8ec44b5 commit 9b55076
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,15 @@ <h2 id="about" style="margin-top: 10px;">About</h2>
<h2 id="installation">Installation</h2>
<p>This is a <strong>node</strong> package, and can be installed with <strong>npm</strong> (Node Package Manager). It has full sopport of node 20.15.1, which is the latest LTS (Long-Term Support) node version. </p>
<p>In most operating systems, it should also work for <strong>more recent</strong> versions.</p>
<p>To install in the <b>browser</b>, link js-pytorch-browser.js to your HTML file:</p>
<pre>
<code class="language-html line-numbers">
&lt;script src="dist/js-pytorch-browser.js"&gt;&lt;/script&gt;
&lt;script type="module"&gt;
import { torch } from 'dist/js-pytorch-browser.js';
&lt;/script&gt;
</code>
</pre>
<h3 id="macos">MacOS</h3>
<ul>
<li>First, install <strong>node</strong> with the command line, as described on the <a href="https://nodejs.org/en/download/package-manager" target="_blank">node website</a>:</li>
Expand Down

0 comments on commit 9b55076

Please sign in to comment.