You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>JS-PyTorch is a <strong>Deep Learning</strong> JavaScript library, which uses the seamless PyTorch syntax.</li>
605
605
<li>This means that you can use this library to <strong>train, test and deploy Neural Networks</strong>, with node.js or on a web browser.</li>
606
-
<li>For access to the source code, visit <ahref="https://github.com/eduardoleao052/js-pytorch",target="_blank">The GitHub repo</a>.</li>
606
+
<li>For access to the source code, visit <ahref="https://github.com/eduardoleao052/js-pytorch",target="_blank">the GitHub repo</a>.</li>
607
607
</ul>
608
608
<h2id="installation">Installation</h2>
609
609
<p>This is a <strong>node</strong> package, and can be installed with <strong>npm</strong> (Node Package Manager). It has full support of node 20.15.1, which is the latest LTS (Long-Term Support) node version, and more recent versions. </p>
610
-
<p>To run JS-PyTorch in the <b>browser</b>, first install it using npm, then link it to your HTML file:</p>
import { torch } from './node_modules/js-pytorch/dist/js-pytorch-browser.js';
614
-
window.torch = torch;
615
-
</script>
616
-
</code></pre>
617
-
<p>After that, you can use JS-PyTorch freely in any <b>script</b> in your HTML file.</p>
610
+
<p>To run JS-PyTorch in the <b>browser</b>, paste the following tag in the <strong>head</strong> of your HTML file. You can also get the latest tag from the <ahref="https://cdnjs.com/libraries/js-pytorch" target="_blank">cdnjs</a> website:</p>
<li>If you have <strong>detected a bug</strong> on the library, please file a <ahref="https://github.com/eduardoleao052/js-pytorch/issues/new?assignees=&labels=02+Bug+Report&projects=&template=bug-report.yml",target="_blank">Bug Report</a> using a GitHub issue, and feel free to reach out to me on my LinkedIn or email.</li>
702
699
<li>If you would like to see a <strong>new feature</strong> in Js-PyTorch, file a <ahref="https://github.com/eduardoleao052/js-pytorch/issues/new?assignees=&labels=enhancement&projects=&template=feature-request.yml",target="_blank">New Feature</a> issue.</li>
703
-
<li>Finally, if you would like to contribute, create a merge request to the <code>develop</code> branch. I will try to answer as soon as possible. All help is really appreciated! Here is a list of the <strong>developer tools</strong>:<ul>
704
-
<li><strong>Build for Distribution</strong> by running <code>npm run build</code>. CJS and ESM modules and <code>index.d.ts</code> will be output in the <code>dist/</code> folder.</li>
705
-
<li><strong>Check the Code</strong> with ESLint at any time, running <code>npm run lint</code>.</li>
706
-
<li><strong>Run tests</strong> run <code>npm test</code>.</li>
707
-
<li><strong>Improve Code Formatting</strong> with prettier, running <code>npm run prettier</code>.</li>
708
-
<li><strong>Performance Benchmarks</strong> are also included in the <code>tests/benchmarks/</code> directory. Run all benchmarks with <code>npm run bench</code> and save new benchmarks with <code>npm run bench:update</code>.</li>
700
+
<li>Finally, if you would like to <strong>contribute</strong>, create a merge request to the <code>develop</code> branch. I will try to answer as soon as possible. All help is really appreciated!
0 commit comments