File: install.rst

package info (click to toggle)
pytorch 1.13.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 139,252 kB
  • sloc: cpp: 1,100,274; python: 706,454; ansic: 83,052; asm: 7,618; java: 3,273; sh: 2,841; javascript: 612; makefile: 323; xml: 269; ruby: 185; yacc: 144; objc: 68; lex: 44
file content (37 lines) | stat: -rw-r--r-- 1,353 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Install functorch
=================

As of PyTorch 1.13, functorch is now included in the PyTorch binary and no
longer requires the installation of a separate functorch package. That is,
after installing PyTorch (`instructions <https://pytorch.org>`_),
you'll be able to ``import functorch`` in your program.

If you're upgrading from an older version of functorch (functorch 0.1.x or 0.2.x),
then you may need to uninstall functorch first via ``pip uninstall functorch``.

We've maintained backwards compatibility for ``pip install functorch``: this
command works for PyTorch 1.13 and will continue to work for the foreseeable future
until we do a proper deprecation. This is helpful if you're maintaining a library
that supports multiple versions of PyTorch and/or functorch.

Colab
-----

Please see `this colab for instructions. <https://colab.research.google.com/drive/1GNfb01W_xf8JRu78ZKoNnLqiwcrJrbYG#scrollTo=HJ1srOGeNCGA>`_

Nightly
-------

Looking for the newest functorch features? Please download the latest nightly PyTorch
binary (``import functorch`` is included in nightly PyTorch binaries as of 09/21/2022).
by following instructions `here <https://pytorch.org>`_.

Previous Versions
-----------------

For PyTorch 1.11.x and PyTorch 1.12.x:
Please first install PyTorch and then run the following command:

::

  pip install functorch