Commit Graph

274 Commits

Author SHA1 Message Date
Zain Rizvi
c0fe5fb987 [BE] Doc Update: Python 3.7 is past End of Life (#94314)
Python 3.7 is no longer supported
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94314
Approved by: https://github.com/seemethere, https://github.com/malfet
2023-02-08 17:34:45 +00:00
Egil Martinsson
a719bb0e37 Readme: Fix for outdated build-from-source documentation (#91861)
## `pip install -r requirements.txt` in build-from-source documentation

This line
81b5eff3c3/README.md (L182-L188)
Is outdated. Let's default to `requirements.txt`

### My problem
Without touching this codebase for years I'm trying to build repo for local development and run unit tests. I go to `build from source => Contributing.md`. I immediately run into various problems.

* [Contributing.md](https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md#developing-pytorch) suggests one way of setting up environment different from [README.md#from-source](https://github.com/pytorch/pytorch/blob/master/README.md#from-source) that does not work for me.
* [README.md#from-source](https://github.com/pytorch/pytorch/blob/master/README.md#from-source) suggests a different set of dependencies than [`requirements.txt`](https://github.com/pytorch/pytorch/blob/master/requirements.txt), many of which are unnecessary, and there's still missing ones to run unit tests.
* Dependencies in `requirements.txt` are needed to run unit tests

So there's competing, inlined and outdated equally confident recommendations on how to set up. https://github.com/pytorch/pytorch/pull/91850 tries to remove one recommendation, this PR tries to make the default one simpler.

### Goals
* Improve society somewhat 😁
* Remove a dead end roundtrip in the developer onboarding funnel
* Update a duplicated & outdated line of documentation
* Two broken things => one broken thing
* Improve doc maintainability and nudge us to a productive discussion of what `requirements.txt` is there for.

### Non-goals
* Give a definite recommendation how to set up your machine for local development. I read the instructions in readme at this moment as an outline on how to do it.
* Say that `requirements.txt` is a definite guide to dependencies, I know it's not (but probably should be)

### Background
* Dependency handling/reproducibility in this repo is tricky! See geist of [this](fdbbd20f32/.github/requirements/README.md). There's many different sets of dependencies with different setups for different environments.
* There's been great attempts of _"one requirements.txt to rule them all"_ which got halted https://github.com/pytorch/pytorch/pull/60697/ see https://github.com/pytorch/pytorch/issues/61375
* The unofficial `requirements.txt` file seem to be .circleci/docker/requirements-ci.txt https://github.com/pytorch/pytorch/issues/72556
* Unofficial _"how to build from source"_ docs seem to be here https://github.com/pytorch/pytorch/tree/master/.circleci#how-to-build-a-binary-locally

### Considered alternatives
* a) Point only to python dependencies in `requirements.txt` **(Chosen option)**
```
conda install cmake ninja
pip install -r requirements.txt
```
This guarantees `python setup.py` to run (on my machine) and gets me one step closer to be able to `python test/run_test.py`
* b) Only add whats needed to `python setup.py install`. Point to `Contributing.md` for explanations on how to run tests (which doesn't exactly mention how yet).
```
conda create -n pytorch-source python cmake ninja pyyaml typing_extensions
conda activate pytorch-source
python setup.py develop
```
* c) Add dependencies needed to run (most) unit tests
I assume _"Install from source"_ describes how to "install so I can do development.". This is why we recommend `python setup.py develop`. Doing development implies running unit tests.
```
conda create -n pytorch-source python cmake ninja pytest click
conda activate pytorch-source
pip install -r requirements.txt xdoctest
python setup.py develop
python test/run_test.py --keep-going
```
This still eclectically goes outside the simple principle _"Use dependencies in requirements.txt"_ without solving the whole problem. Instructions to get tests to run is not the goal of this PR.

* d) Point to ex [`.circleci/docker/requirements-ci.txt`](https://github.com/pytorch/pytorch/blob/master/.circleci/docker/requirements-ci.txt) or any of the system-specific sets of pinned requirements like [`requirements-{conda-env-macOS-ARM64}.txt`](https://github.com/pytorch/pytorch/blob/master/.github/requirements/conda-env-macOS-ARM64)
I don't want to jump into this rabbit hole.

<details>
  <summary>My system according to setup.py when verifying it runs</summary>

```
Target system: Darwin-21.6.0
Target processor: arm64
Host system: Darwin-21.6.0
Host processor: arm64
Detected C compiler: AppleClang @ /Library/Developer/CommandLineTools/usr/bin/cc
CMake: 3.22.1
Make program: /opt/homebrew/Caskroom/miniconda/base/envs/pytorch-source/bin/ninja
Python version      : 3.10.8
Python executable   : /opt/homebrew/Caskroom/miniconda/base/envs/pytorch-source/bin/python
Pythonlibs version  : 3.10.8
Python library      : /opt/homebrew/Caskroom/miniconda/base/envs/pytorch-source/lib/libpython3.10.a
Python includes     : /opt/homebrew/Caskroom/miniconda/base/envs/pytorch-source/include/python3.10
Python site-packages: lib/python3.10/site-packages
```

</details>

See details in comments below.
[skip ci]
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91861
Approved by: https://github.com/malfet, https://github.com/ZainRizvi
2023-02-03 00:52:23 +00:00
Svetlana Karslioglu
8dfcb59d66 Update version of Python to 3.8 in the prerequisites (#93399)
With support of Python 3.7 being deprecated, updating the prerequisites to list Python 3.8 or later.

Fixes #93256

Pull Request resolved: https://github.com/pytorch/pytorch/pull/93399
Approved by: https://github.com/atalman, https://github.com/Skylion007
2023-01-31 23:38:19 +00:00
Jane Xu
0ecb071fc4 [BE][CI] change references from .jenkins to .ci (#92624)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92624
Approved by: https://github.com/ZainRizvi, https://github.com/huydhn
2023-01-30 22:50:07 +00:00
albanD
2f6a975f25 Remove cffi dependency as it doesn't look like we're using it (#92738)
Maybe this will go horribly wrong in CI but works fine without it locally!

Pull Request resolved: https://github.com/pytorch/pytorch/pull/92738
Approved by: https://github.com/kit1980, https://github.com/seemethere
2023-01-22 15:03:52 +00:00
Nikita Shulga
1906eaf22f [BE] Get rid of future (#92596)
PyTorch has been Python-3.X+ for ages, so it's a shame to still rely on `future.utils` even in a deprecated Caffe2 codebase

For the reference:
https://peps.python.org/pep-0469/#migrating-directly-to-python-3

Pull Request resolved: https://github.com/pytorch/pytorch/pull/92596
Approved by: https://github.com/kit1980, https://github.com/orionr
2023-01-19 08:46:50 +00:00
TachikakaMin
6790a558dd Simplify macOS build instruction (#91561)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91561
Approved by: https://github.com/malfet
2023-01-05 00:10:16 +00:00
cyy
9710ac6531 Some CMake and CUDA cleanup given recent update to C++17 (#90599)
The main changes are:
1. Remove outdated checks for old compiler versions because they can't support C++17.
2. Remove outdated CMake checks because it now requires 3.18.
3. Remove outdated CUDA checks because we are moving to CUDA 11.

Almost all changes are in CMake files for easy audition.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90599
Approved by: https://github.com/soumith
2022-12-30 11:19:26 +00:00
Radek Bartoň
5725a44080 Remove Windows compilation dependencies installation from CI/CD scripts (#89909)
They should be already installed in the runner VM.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89909
Approved by: https://github.com/huydhn
2022-12-23 17:40:19 +00:00
atalman
3bd37ff2d5 Removing invalid git option when updating submodules (#91132)
Same as this: https://github.com/pytorch/builder/pull/1246
Related to following git commit: 51243f9f0f
Which makes jobs = 0 invalid.

Nightlies for MacOS are failing because of this issue: https://github.com/pytorch/pytorch/actions/runs/3729522653/jobs/6325523414

Pull Request resolved: https://github.com/pytorch/pytorch/pull/91132
Approved by: https://github.com/kit1980, https://github.com/huydhn, https://github.com/malfet, https://github.com/seemethere
2022-12-20 02:17:02 +00:00
PyTorch MergeBot
b2082833c6 Revert "woof (#89010)"
This reverts commit 4570bd6030.

Reverted https://github.com/pytorch/pytorch/pull/89010 on behalf of https://github.com/ezyang due to whoops this actually landed
2022-11-14 21:21:09 +00:00
Edward Z. Yang
4570bd6030 woof (#89010)
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Differential Revision: [D41276175](https://our.internmc.facebook.com/intern/diff/D41276175)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89010
Approved by: https://github.com/bigfootjon
2022-11-14 20:58:27 +00:00
Mark Saroufim
394b998de2 sub setup.py install -> develop (#88507)
If someone is building the project from source they're likely a contributor for which develop will be much more useful. For people that want to try the latest and greatest they can leverage the nightlies

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/88507
Approved by: https://github.com/malfet
2022-11-10 21:04:38 +00:00
Marko Horatio Mekjavic
546d68226c Update README.md (#84263)
Just fixed a couple of typos (i.e. upzipped -> unzipped) :)

Fixes #84262

Pull Request resolved: https://github.com/pytorch/pytorch/pull/84263
Approved by: https://github.com/Lezcano, https://github.com/albanD
2022-08-30 15:00:30 +00:00
Emil Taniverdiev
938765e0b6 Add all supported Jetson platforms (#82404)
### Description
Simple README fix to add all supported Jetson platforms (Xavier NX, new Jetson Orin AGX)

### Issue
No issue was reported

### Testing
No tests required for given change
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82404
Approved by: https://github.com/ezyang
2022-07-28 21:17:37 +00:00
Fabio Rocha
e100e6fd4f Added note about katex install for building docs (#81550)
Currently, the version of katex that npm installs
and the version of nodejs that is installed by conda
from conda-forge are incompatible. This note describes
which version of katex to install to avoid this
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81550
Approved by: https://github.com/Lezcano, https://github.com/kit1980
2022-07-15 22:30:49 +00:00
unknown
9aad40e8eb Capitalized first letters in the contents of readme table (#77953)
Fixes #ISSUE_NUMBER

Changes have been made to the table in the  readme docs
![Screenshot (98)](https://user-images.githubusercontent.com/96517901/169482656-e36f66aa-61fa-4e40-8f2d-5a833552a921.png)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/77953
Approved by: https://github.com/svekars, https://github.com/kit1980
2022-06-17 04:20:39 +00:00
Zain Rizvi
5ef378a30f Fix out of date documentation & remove friction points (#78682)
Fixes various friction points with the documentation for onboarding new users and remove instructions that were no longer valid

Changes include:
- Listing prerequisites earlier, so that devs can ensure they're met before encountering error messages
- Removing linter invocations that are no longer valid
- Modifying instructions to install mkl packages to only apply to x86 based CPUs

[skip ci]
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78682
Approved by: https://github.com/seemethere, https://github.com/janeyx99, https://github.com/malfet
2022-06-02 19:31:48 +00:00
Alban Desmaison
8880e3a3c7 Readme update to remove old python version
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76328
Approved by: https://github.com/ptrblck, https://github.com/seemethere
2022-04-28 17:10:10 +00:00
Sing
9de2beb86b Update README.md
Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76369
Approved by: https://github.com/zou3519
2022-04-26 21:55:58 +00:00
Jane Xu
bb82a700f0 Remove inaccurate confusing signal box from README.md
Replaces with HUD
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74131
Approved by: https://github.com/kit1980, https://github.com/seemethere
2022-03-15 02:15:16 +00:00
Andrey Talman
6c4437118b Deprecating Python 3.6 (#70493)
Summary:
Deprecating python 3.6 from documentation and from cmake

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70493

Reviewed By: suo

Differential Revision: D33433118

Pulled By: atalman

fbshipit-source-id: c3adc7b75714efdb5b6acda5d4cddc068fb4a145
2022-01-05 11:46:32 -08:00
Michael Suo
1adb70c6f0 Revert D33409880: [pytorch][PR] Deprecating Python 3.6
Test Plan: revert-hammer

Differential Revision:
D33409880 (d95be99561)

Original commit changeset: 4f9123398960

Original Phabricator Diff: D33409880 (d95be99561)

fbshipit-source-id: 32dc1c3c07ef99a04fab7d0fb742cf4e6c4b718a
2022-01-04 16:37:09 -08:00
Andrey Talman
d95be99561 Deprecating Python 3.6 (#70493)
Summary:
Deprecating python 3.6 from documentation and from cmake

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70493

Reviewed By: malfet

Differential Revision: D33409880

Pulled By: atalman

fbshipit-source-id: 4f912339896096be95b344724a4d9ae88cdf1a8f
2022-01-04 14:41:27 -08:00
Ivan Krivyakov
bc3246453b Added explicit build command for Windows and clarification on obtaining (#70190)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70190

C++ build tools to readme.md

Test Plan: Imported from OSS

Reviewed By: jbschlosser

Differential Revision: D33245438

Pulled By: ikriv

fbshipit-source-id: ef863d68926bd7416d0e10d24197d19392c124de
2022-01-03 14:33:59 -08:00
David Riazati
e70b5d64f4 Change README getting started link to explicit instructions (#66828)
Summary:
This changes the link for installing binaries to the page on pytorch.org that is entirely the download command selector (which isn't visible on a normal aspect ratio screen when the main website page first loads anymore).

This also includes some other random fixes:
* Update HUD link
* Clean ups

Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/66828

Reviewed By: malfet

Differential Revision: D31750654

Pulled By: driazati

fbshipit-source-id: aef9ceba71418f6f7648eab9a8c8a78d6c60518b
2021-10-19 14:59:48 -07:00
Jane Xu
4c4c03124b Remove old references to 9.2 in documentation (#65059)
Summary:
Removes references in .rst and README.md and comments in the Dockerfile

Pull Request resolved: https://github.com/pytorch/pytorch/pull/65059

Reviewed By: malfet

Differential Revision: D30961110

Pulled By: janeyx99

fbshipit-source-id: 702a9a81bf08125ec4ac38bc656fc2c128c30018
2021-09-16 13:24:05 -07:00
Yi Zhang
73431449b3 update readme and contributing.md (#63843)
Summary:
1. In fact, Visual Studio isn't supported as CMAKE generator
2. I was asked many times why there's error as 'Could NOT find OpenMP'
3. Add Newly added Best Practices link in contributing.md

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63843

Reviewed By: seemethere, heitorschueroff

Differential Revision: D30514095

Pulled By: janeyx99

fbshipit-source-id: 76715a1d8c049122546e5a7778cafe54e4dfd5d6
2021-08-24 10:52:11 -07:00
Peter Bell
560cd88195 Kill THCUNN (#63429)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63429

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D30441308

Pulled By: ngimel

fbshipit-source-id: 3ae342a2f8d5c7f8827b637c4055c5d1b0a1be26
2021-08-23 12:07:16 -07:00
aeioaeu
89f898ebb5 Fix wrong command in README.md (#62472)
Summary:
If it is `[15^,16^)`, 16.10 is not included.
https://github.com/Microsoft/vswhere/wiki/Examples

Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62472

Reviewed By: nairbv

Differential Revision: D30103199

Pulled By: ezyang

fbshipit-source-id: 82085627ca53cd5a4e666848d27d4ab062de8352
2021-08-04 12:55:18 -07:00
Gao, Xiang
a4af91b2fe Cleanup CUDA 10.1 and 10.0 support on CI (#62597)
Summary:
10.1 is removed in https://github.com/pytorch/pytorch/pull/56056

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62597

Reviewed By: walterddr

Differential Revision: D30053902

Pulled By: seemethere

fbshipit-source-id: deb148e5e44c12b08c267a36fbd4a1afa138e6e4
2021-08-02 14:42:25 -07:00
zhouzhuojie
6107cf3750 Add --jobs 0 for git submodule update (#61311)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61311

Pull Request resolved: https://github.com/pytorch/pytorch/pull/61152

Some related docs about `submodule.fetchJobs`
https://git-scm.com/docs/git-config#Documentation/git-config.txt-submodulefetchJobs

```
time git submodule update --init --recursive
________________________________________________________
Executed in  243.20 secs    fish           external
   usr time   49.64 secs  213.00 micros   49.64 secs
   sys time   29.27 secs  795.00 micros   29.27 secs
```

```
time git submodule update --init --recursive --jobs 4
________________________________________________________
Executed in  143.04 secs    fish           external
   usr time   51.06 secs  246.00 micros   51.06 secs
   sys time   30.96 secs  742.00 micros   30.96 secs
```

```
time git submodule update --init --recursive --jobs 8
________________________________________________________
Executed in  124.64 secs    fish           external
   usr time   51.76 secs  264.00 micros   51.76 secs
   sys time   30.49 secs  739.00 micros   30.49 secs

```

```
time git submodule update --init --recursive --jobs 0 # use all online cpus
 ________________________________________________________
Executed in  129.75 secs    fish           external
   usr time   51.64 secs  181.00 micros   51.64 secs
   sys time   31.49 secs  781.00 micros   31.49 secs

```

Test Plan: Imported from OSS

Reviewed By: 1ntEgr8

Differential Revision: D29560875

Pulled By: zhouzhuojie

fbshipit-source-id: 556027dffe744c66428075a8a1bf64683930aaaf
2021-07-07 16:28:18 -07:00
Elton Chen-Yu Ho
336ac9496f Fix mismatch in README.md Docker Image section (#59199)
Summary:
docker.Makefile has CUDNN_VERSION=8 as the defaults, but README.md states cuDNN v7

Pull Request resolved: https://github.com/pytorch/pytorch/pull/59199

Reviewed By: mruberry

Differential Revision: D28808611

Pulled By: ngimel

fbshipit-source-id: 96cea32bfe33184b2bff69b7bb7f3e50a2b9c6aa
2021-06-01 15:22:30 -07:00
davidriazati@fb.com
a566005679 [skip ci] Update readme to use hud.pytorch.org (#58835)
Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/58835

Pulled By:
davidriazati
driazati

Reviewed By: seemethere

Differential Revision: D28632504

fbshipit-source-id: 867f061be039bc63c1478b1b1eed8c0380e94faa
2021-05-24 15:02:18 -07:00
H1Gdev
d7d0fa2069 Fix typo. (#58728)
Summary:
Fix typo in docs and comments.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/58728

Reviewed By: mruberry

Differential Revision: D28603612

Pulled By: H-Huang

fbshipit-source-id: b3cd8f6f19354201d597254d0b3cb4e2062471ab
2021-05-21 11:45:10 -07:00
Tugsbayasgalan (Tugsuu) Manlaibaatar
88ff651e90 torch.jit.ignore as a context manager (#55172)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55172

Description:
This is part 1 of series of PRs for supporting torch.jit.ignore as context manager. Following features are implemented in this PR:

- Unique name for the registered function under torch.jit.frontend module. The unique name is generated based on the file name and line number of context manager
- Forcing user to explicitly annotate the input and outputs.
- No side effects are considered.

Test Plan: Imported from OSS

Reviewed By: gmagogsfm

Differential Revision: D27895283

Pulled By: tugsbayasgalan

fbshipit-source-id: 5d36d9aa5d457055a6bb1676f264647a745ec36a
2021-05-14 01:53:50 -07:00
Yi Zhang
cb1272a846 update doc in build section (#56686)
Summary:
Why:
To keep VS version always updated in README
1. update VS version link in CI. It's more convenient for my PR robot to update the version in README once the VS in CI is updated. and permlink isn't stable.
2. Move `building on legacy code` to development tips. The table is big and it looks the REAMD not updated at the first sight.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/56686

Reviewed By: janeyx99

Differential Revision: D28272060

Pulled By: samestep

fbshipit-source-id: 4bb879ea2914cc8bcd68343a9ed230418e1f9268
2021-05-06 17:35:56 -07:00
Gary Miguel
bc3d892c20 README: Minor improvements (#56193)
Summary:
* Visual studio versions: clarify and shorten.
* Remove obsolete note about a bug that has been fixed.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/56193

Reviewed By: albanD

Differential Revision: D27939766

Pulled By: ezyang

fbshipit-source-id: e142ec04ba98d5468f28ddf2e8bba5d99d3cfc26
2021-04-22 09:30:23 -07:00
Yi Zhang
8ad32dbbd7 update build tutorial - choose the correct VS version (#54933)
Summary:
There might be regressions in newest VS.
Remind users to choose the stable VC version as our CI's

Pull Request resolved: https://github.com/pytorch/pytorch/pull/54933

Reviewed By: walterddr

Differential Revision: D27466645

Pulled By: malfet

fbshipit-source-id: a6a1ebea4cc1b22e13c7342ee4c061afcef7e2b5
2021-03-31 13:45:48 -07:00
Sam Estep
a74b10def9 Keep Markdown ToCs up to date (#54974)
Summary:
This PR uses [markdown-toc](https://github.com/jonschlinkert/markdown-toc#cli) to [automatically update the table of contents for `README.md` and `CONTRIBUTING.md`](https://github.com/pytorch/pytorch/pull/54904#issuecomment-809682134) in CI.

This keeps the same format already used in `README.md`. While it does slightly change the format for the ToC in `CONTRIBUTING.md`, the new format is actually just the same as the old format that was already being used prior to https://github.com/pytorch/pytorch/issues/51458.

Race condition with https://github.com/pytorch/pytorch/issues/54904.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/54974

Test Plan: The new "Lint / toc" job in GitHub Actions [succeeds](https://github.com/pytorch/pytorch/pull/54974/checks?check_run_id=2238739005) on this PR, and [fails](https://github.com/pytorch/pytorch/pull/54976/checks?check_run_id=2238784022) on https://github.com/pytorch/pytorch/issues/54976 with an understandable error message.

Reviewed By: malfet

Differential Revision: D27468390

Pulled By: samestep

fbshipit-source-id: 14a73f42ed546d4310140b94ded14e099185d0e0
2021-03-31 10:36:09 -07:00
Pruthvi Madugundu
0f628d1503 [ROCm][doc] add ROCm section for building from source (#53845)
Summary:
Instructions for compiling PyTorch from source for ROCm were missing now that PyTorch 1.8 announced beta support for ROCm.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/53845

Reviewed By: heitorschueroff

Differential Revision: D27237916

Pulled By: malfet

fbshipit-source-id: c8be92fd76ea8df7e9f6944c0036568189f58808
2021-03-22 14:35:35 -07:00
Chester Liu
6a4d2c61d5 Allow linking against vcomp on Windows (#54132)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/54054

Pull Request resolved: https://github.com/pytorch/pytorch/pull/54132

Reviewed By: zou3519

Differential Revision: D27181524

Pulled By: malfet

fbshipit-source-id: b79b34afb7edcc594d9b5907c5a7505b9cc5683b
2021-03-19 14:36:07 -07:00
Jane Xu
e2befb84bc minor README change to fix #25464 (#48970)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/25464

Pull Request resolved: https://github.com/pytorch/pytorch/pull/48970

Reviewed By: walterddr

Differential Revision: D25396284

Pulled By: janeyx99

fbshipit-source-id: 8355c417b5c8b8865f208d7d8e8154048423afd9
2020-12-08 07:48:52 -08:00
ProGamerGov
d6ddd78eb0 Fix multiple spelling and grammar mistakes (#48592)
Summary:
I found a number of spelling & grammatical mistakes in the repository. Previously I had these fixes submitted individually, but I saw that a single word change was apparently too small for a PR to be merged. Hopefully this new PR has a sufficient number of changes.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/48592

Reviewed By: ejguan

Differential Revision: D25224216

Pulled By: mrshenli

fbshipit-source-id: 2af3db2aee486563efd0dffc4e8f777306a73e44
2020-11-30 15:18:44 -08:00
pratish
e56e21b775 Grammatically update the readme docs (#48328)
Summary:
Small grammatical update to the readme docs.

![Capture-py1](https://user-images.githubusercontent.com/65657554/99846018-9b475280-2b9b-11eb-84ab-37e129e4f3e6.PNG)

![Capture-py2](https://user-images.githubusercontent.com/65657554/99846023-9da9ac80-2b9b-11eb-9b3b-0998f53ec2ce.PNG)

![Capture-py3](https://user-images.githubusercontent.com/65657554/99846034-a0a49d00-2b9b-11eb-807e-7200c0b6fef4.PNG)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/48328

Reviewed By: linbinyu

Differential Revision: D25132876

Pulled By: mrshenli

fbshipit-source-id: f1214b3098bec6713ef53f226f8d0d33946a5ec1
2020-11-25 19:56:32 -08:00
Yi Zhang
98722ab8a7 There should be a newline between BUILD WITH CUDA and NVTX (#48048)
Summary:
When you do want to insert a `<br />` break tag using Markdown, you end a line with two or more spaces, then type return.

From
https://stackoverflow.com/questions/33191744/how-to-add-new-line-in-markdown-presentation/33191810

Pull Request resolved: https://github.com/pytorch/pytorch/pull/48048

Reviewed By: gchanan

Differential Revision: D25003623

Pulled By: walterddr

fbshipit-source-id: ab5f7267ae936f6f006b4afa43254afa690ef7f4
2020-11-18 08:00:05 -08:00
Yi Zhang
f9552e6da4 update windows build guide (#47840)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/47483

Pull Request resolved: https://github.com/pytorch/pytorch/pull/47840

Reviewed By: malfet

Differential Revision: D24951466

Pulled By: walterddr

fbshipit-source-id: 7530ec5a3aff7095978c330d9b78e58b10349373
2020-11-16 08:15:42 -08:00
skyline75489
fcd44ce698 Add instruction on how to handle the potential linker error on Linux (#47593)
Summary:
The original issue is https://github.com/pytorch/pytorch/issues/16683, which contains a https://github.com/pytorch/pytorch/issues/16683#issuecomment-459982988 that suggests manually un-shadowing the `ld`.

A better approach can be found at https://github.com/ContinuumIO/anaconda-issues/issues/11152#issuecomment-573120962, which suggests that using a newer version can effectively fix this.

It took me quite some time to realize that this is in fact an issue caused by Anaconda. I think we should add it in README.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/47593

Reviewed By: ailzhang

Differential Revision: D24866092

Pulled By: heitorschueroff

fbshipit-source-id: c1f51864d23fd6f4f63a117496d8619053e35196
2020-11-11 14:24:33 -08:00
gunandrose4u
7e863475d7 Upgrade ReadMe document to guide user to install libuv(1.39) in conda env on Windows platform (#45553)
Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/45553

Reviewed By: SciPioneer

Differential Revision: D24017246

Pulled By: mrshenli

fbshipit-source-id: ec69f864a7acfbdddd60c3d2b442294ec3e34558
2020-09-30 08:28:47 -07:00
gunandrose4u
0a38aed025 Auto set libuv_ROOT env var for Gloo submodule on Windows platform (#45484)
Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/45484

Reviewed By: lw

Differential Revision: D23990724

Pulled By: mrshenli

fbshipit-source-id: 1987ce7eb7d3f9d3120c07e954cd6581cd3caf59
2020-09-29 08:58:56 -07:00
gunandrose4u
47debdca42 Document change for DDP enabled on Windows platform (#45392)
Summary:
Document change for DDP enabled on Windows platform

Pull Request resolved: https://github.com/pytorch/pytorch/pull/45392

Reviewed By: gchanan

Differential Revision: D23962344

Pulled By: mrshenli

fbshipit-source-id: 8924c6ca36d68699871d8add3e0aab6542ea269c
2020-09-28 13:22:42 -07:00
Oscar Sandoval
a044c039c0 updated documentation to streamline setup (#42850)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/42850

Reviewed By: mrshenli

Differential Revision: D23449055

Pulled By: osandoval-fb

fbshipit-source-id: 6db695d4fe5f6d9b7bb2895c85c855db4779516b
2020-09-01 08:25:48 -07:00
Edward Yang
6ea89166bd Rewrite of ATen code generator (#42629)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42629

How to approach reviewing this diff:

- The new codegen itself lives in `tools/codegen`. Start with `gen.py`, then read `model.py` and them the `api/` folder. The comments at the top of the files describe what is going on. The CLI interface of the new codegen is similar to the old one, but (1) it is no longer necessary to explicitly specify cwrap inputs (and now we will error if you do so) and (2) the default settings for source and install dir are much better; to the extent that if you run the codegen from the root source directory as just `python -m tools.codegen.gen`, something reasonable will happen.
- The old codegen is (nearly) entirely deleted; every Python file in `aten/src/ATen` was deleted except for `common_with_cwrap.py`, which now permanently finds its home in `tools/shared/cwrap_common.py` (previously cmake copied the file there), and `code_template.py`, which now lives in `tools/codegen/code_template.py`. We remove the copying logic for `common_with_cwrap.py`.
- All of the inputs to the old codegen are deleted.
- Build rules now have to be adjusted to not refer to files that no longer exist, and to abide by the (slightly modified) CLI.
- LegacyTHFunctions files have been generated and checked in. We expect these to be deleted as these final functions get ported to ATen. The deletion process is straightforward; just delete the functions of the ones you are porting. There are 39 more functions left to port.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Reviewed By: bhosmer

Differential Revision: D23183978

Pulled By: ezyang

fbshipit-source-id: 6073ba432ad182c7284a97147b05f0574a02f763
2020-08-31 09:00:22 -07:00
Manish Ram
eae92b7187 Updated README.md by correcting grammatical errors (#43779)
Summary:
Fixed grammatical errors and punctuation so that it be can more understandable.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/43779

Reviewed By: ZolotukhinM

Differential Revision: D23407849

Pulled By: malfet

fbshipit-source-id: 09c064ce68d0f37f8023c2ecae8775fc00541a2c
2020-08-28 20:30:03 -07:00
pacowong
53bbf5a48b Update README.md (#43100)
Summary:
The changes are minor.
1. Add back the external links so that readers can find out more about external tools on how to accelerate PyTorch.
2. Fix typo

Pull Request resolved: https://github.com/pytorch/pytorch/pull/43100

Reviewed By: colesbury

Differential Revision: D23192251

Pulled By: mrshenli

fbshipit-source-id: dde54b7942ebff5bbe3d58ad95744c6d95fe60fe
2020-08-18 11:04:36 -07:00
Ralf Gommers
dc1f87c254 Add typing_extensions as a dependency. (#42431)
Summary:
Closes gh-38221.

The related pytorch/builder PR: https://github.com/pytorch/builder/pull/475

Pull Request resolved: https://github.com/pytorch/pytorch/pull/42431

Reviewed By: malfet

Differential Revision: D22916499

Pulled By: ezyang

fbshipit-source-id: c8fe9413b62fc7a6b829fc82aaf32531b55994d1
2020-08-03 20:06:16 -07:00
Daiki Katsuragawa
3acd6b7359 Document formatting (#42065)
Summary:
Apply syntax highlighting to the command in `README.md`. This makes `README.md` easier to read.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/42065

Reviewed By: pbelevich

Differential Revision: D22753418

Pulled By: mrshenli

fbshipit-source-id: ebfa90fdf60478c34bc8a7284d163e0254cfbe3b
2020-07-28 08:27:42 -07:00
Hong Xu
183b43f323 Clarify Python 3.5 is the minimum supported version in the installation section. (#41937)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/41937

Reviewed By: izdeby

Differential Revision: D22702924

Pulled By: mrshenli

fbshipit-source-id: 67306435e80f80236b585f1d5406444daec782d6
2020-07-23 15:54:56 -07:00
Yanan Cao
445128d0f2 Add PyTorch Glossary (#40639)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40639

Differential Revision: D22421207

Pulled By: gmagogsfm

fbshipit-source-id: 7df8bfc85e28bcf1fb08892a3671e7a9cb0dee9c
2020-07-07 19:53:44 -07:00
Sebastian Messmer
c790476384 Back out "Revert D22072830: [wip] Upgrade msvc to 14.13" (#40594)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40594

Original commit changeset: 901de185e607
ghstack-source-id: 106642590

Test Plan: oss ci

Differential Revision: D22247269

fbshipit-source-id: be0c64d1a579f8aa3999cb84a9d20488095a81bd
2020-06-25 17:19:33 -07:00
Sebastian Messmer
d8ec19bc03 Revert D22072830: [wip] Upgrade msvc to 14.13
Test Plan: revert-hammer

Differential Revision:
D22072830

Original commit changeset: 6fa03725f3fe

fbshipit-source-id: 901de185e607810cb3871c2e4d23816848c97f4b
2020-06-23 16:13:03 -07:00
Sebastian Messmer
d21ee2de66 [wip] Upgrade msvc to 14.13 (#40109)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40109

ghstack-source-id: 106426627

Test Plan: oss CI

Differential Revision: D22072830

fbshipit-source-id: 6fa03725f3fe272795553c9c4acf46130b8c6039
2020-06-23 13:05:36 -07:00
Srimukh Sripada
a8ab78c815 Added a link to Contribution guide in Readme (#40353)
Summary:
Added a link to `CONTRIBUTION.md` in `README.md` for easy reference.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40353

Differential Revision: D22167138

Pulled By: ezyang

fbshipit-source-id: fe7b7f190c8135fdd2e71696c1cf8d84bcd40fc6
2020-06-22 13:20:06 -07:00
wangxiyuan
12cf8390e6 Update aarch64 CI badge (#39914)
Summary:
This PR added python37 and python38 badge for aarch64 build  CI.

You can preview the badge here: https://github.com/wangxiyuan/pytorch/tree/update_aarch64_ci

The build job is passing now since we use CLANG instead GCC for building.

Using GCC still hit error which is mentioned in https://github.com/pytorch/pytorch/issues/33124

Related: https://github.com/pytorch/pytorch/issues/39558
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39914

Differential Revision: D22068834

Pulled By: ezyang

fbshipit-source-id: d8a2ec795408850ec6eba3af7b29ddfeb3cbea38
2020-06-16 09:22:42 -07:00
wangxiyuan
f1e6e56641 Add aarch64 ci badge (#39698)
Summary:
This PR added a third-party aarch64 CI badge. It's CPU only currently for building pytorch master branch on python3.6 and Ubuntu 18.04. This CI is provided by OpenLab[1]

The build job runs once everyday at UTC0000

You can preview the badge here[2]

The build failed because of a known issue: https://github.com/pytorch/pytorch/issues/33124

More python version and GPU support will be added in the future.

This fixes pytorch/pytorch#39558.

1: https://openlabtesting.org/
2: https://github.com/wangxiyuan/pytorch/tree/add_aarch64_ci_badge
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39698

Differential Revision: D21960607

Pulled By: ezyang

fbshipit-source-id: 15d5c06e455ed1b5cf69c3b33906c098cb539f87
2020-06-09 14:02:59 -07:00
David Clissold
ac25267753 fix build table for ppc64le (#39475)
Summary:
This corrects the build info for ppc64le in the main README.

I am opening this PR before renaming the build job.  (So, the "live" master README has the correct "live" link and the PR does not.)
Immediately after submitting the PR, I will correct the name of the build job.  This will make the new PR link correct, and the current "master" link will briefly appear broken until this PR gets merged.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39475

Differential Revision: D21883184

Pulled By: malfet

fbshipit-source-id: 148353b632448c98e5aff560d31642328afe7963
2020-06-04 08:31:38 -07:00
ShawnZhong
fc4dfbf700 Remove reference of CUDA < 9.2 (#38977)
Summary:
Since CUDA < 9.2 is no longer supported (See https://github.com/pytorch/pytorch/pull/36848, https://github.com/pytorch/pytorch/pull/36846), this PR updates the required CUDA version in README.md to avoid confusion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38977

Differential Revision: D21722965

Pulled By: ezyang

fbshipit-source-id: 626772f4303d023918dda34a620d95693174d97f
2020-05-26 09:23:26 -07:00
Rishit Dagli
b04c07a67c Added a Resource section to README (#38547)
Summary:
Added the following entries in the newly made resources section in README:

* [PyTorch.org](https://pytorch.org/)
* [PyTorch Tutorials](https://pytorch.org/tutorials/)
* [PyTorch Examples](https://github.com/pytorch/examples)
* [PyTorch Models](https://pytorch.org/hub/)
* [Intro to Deep Learning with PyTorch from Udacity](https://www.udacity.com/course/deep-learning-pytorch--ud188)
* [Intro to Machine Learning with PyTorch from Udacity](https://www.udacity.com/course/intro-to-machine-learning-nanodegree--nd229)
* [Deep Neural Networks with PyTorch from Coursera](https://www.coursera.org/learn/deep-neural-networks-with-pytorch)
* [PyTorch Twitter](https://twitter.com/PyTorch)
* [PyTorch Blog](https://pytorch.org/blog/)
* [PyTorch YouTube](https://www.youtube.com/channel/UCWXI5YeOsh03QvJ59PMaXFw)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38547

Differential Revision: D21601647

Pulled By: jerryzh168

fbshipit-source-id: 2453312401386aa59c3b6c62b9f735dc8eb4947f
2020-05-15 15:54:10 -07:00
Rak Alexey
5c628ddbd0 Fix README for installation from source (#37301)
Summary:
I think, it's help faster compile pytorch from source without errors about incompatible compiler(such as: unsupported GNU version! gcc versions later than 8 are not supported!)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37301

Differential Revision: D21396682

Pulled By: ngimel

fbshipit-source-id: 5e21c36ee550424e820f3aa6e6131ca858994ae4
2020-05-05 10:15:21 -07:00
Bharat Raghunathan
0c2a72ec41 Update README to include few (missing?) links (#37714)
Summary:
Update of README
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37714

Differential Revision: D21393786

Pulled By: ngimel

fbshipit-source-id: 8ae12b38989cbfcdd4d69db1c1ab3bbac0e0db61
2020-05-04 18:34:58 -07:00
Orion Reblitz-Richardson
2d8dbcd3ef Remove python2 and 3.5 from requirements.txt, README and docs (#35677)
Summary:
Some more cleanup now that we no longer support python2 or 3.5 on master and eventually PyTorch 1.6 release.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35677

Differential Revision: D20838097

Pulled By: orionr

fbshipit-source-id: 95d553a1e8769f3baa395e0bc6d4ce7cd93236e9
2020-04-03 11:05:43 -07:00
Bruce Lin
34688d2c48 Add brand guidelines link (#34503)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34503

Differential Revision: D20349273

Pulled By: soumith

fbshipit-source-id: 6b085377741ace5d200ca0d536de433b9bb7825c
2020-03-09 15:55:52 -07:00
Marc Lacayo
99228086a6 Added missing period in README.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32723

Differential Revision: D19607256

Pulled By: mlacayo

fbshipit-source-id: 2993014d4d90fa26acd5bc01ed7494cc43a29a62
2020-01-28 16:25:04 -08:00
Eli Uriegas
f0c85571ed docker: Refactor Dockerfile process for official images (#32515)
Summary:
## Commit Message:

Refactors Dockerfile to be as parallel as possible with caching and adds a new Makefile to build said Dockerfile.

Also updated the README.md to reflect the changes as well as updated some of the verbage around running our latest Docker images.

Adds the new Dockerfile process to our CircleCI workflows

## How to build:

Building the new images is pretty simple, just requires `docker` > 18.06 since the new build process relies on `buildkit` caching and multi-stage build resolving.

### Development images
For `runtime` images:
```
make -f docker.Makefile runtime-image
```

For `devel` images:
```
make -f docker.Makefile devel-image
```

Builds are tagged as follows:
```bash
docker.io/${docker_user:-whoami}/pytorch:$(git describe --tags)-${image_type}
```

Example:
```
docker.io/seemethere/pytorch:v1.4.0a0-2225-g9eba97b61d-runtime
```

### Official images

Official images are the ones hosted on [`docker.io/pytorch/pytorch`](https://hub.docker.com/r/pytorch/pytorch)

To do official images builds you can simply add set the `BUILD_TYPE` variable to `official` and it will do the correct build without building the local binaries:

Example:
```
make -f docker.Makefile BUILD_TYPE=official runtime-image
```

## How to push:

Pushing is also super simple (And will automatically tag the right thing based off of the git tag):

```
make -f docker.Makefile runtime-push
make -f docker.Makefile devel-push
```
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32515

Differential Revision: D19558619

Pulled By: seemethere

fbshipit-source-id: a06b25cd39ae9890751a60f8f36739ad6ab9ac99
2020-01-24 10:27:20 -08:00
David Clissold
b26ee54176 For ppc64le, stop presenting the python 2.7 builds (we will no longer… (#32315)
Summary:
For ppc64le, we no longer plan to run regular builds on Python 2.7, and we wish to stop
publicizing the build status for those two builds (ppc64le/CPU and ppc64le/GPU each on py27).

This pull request simply removes the build status links for these two builds, replacing them
with a generic dash character (consistent with other un-publicized builds within the table).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32315

Differential Revision: D19435939

Pulled By: soumith

fbshipit-source-id: c9f31e7acba83e42f6a758ac011bbef36fd8aaa0
2020-01-16 13:49:40 -08:00
Sebastian Meßmer
d64e2581cc Add list of supported XCode/CUDA versions to README
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/30407

Differential Revision: D18689043

Pulled By: smessmer

fbshipit-source-id: cd772451ef31356ed3045ebb1a9c4f5e5e91bb45
2019-11-25 14:52:42 -08:00
James Webber
3bffb730b6 Add note about when to install typing package (#29103)
Summary:
Was just trying to build pytorch from source and had a small hiccup because the instructions say to `conda install typing`. Because `typing` is a built-in module in recent Python 3 versions, conda interpreted that to mean that I want Python 2. So I added a note to the docs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29103

Differential Revision: D18294139

Pulled By: soumith

fbshipit-source-id: 621a2f62ebe870520197baec8f8bcdc1a0c57de9
2019-11-03 19:38:55 -08:00
Aleks Borovtsov
cd3ed4db76 Update README.md (#28971)
Summary:
Fixed some grammar.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28971

Differential Revision: D18265791

Pulled By: soumith

fbshipit-source-id: 778ab3e8a31f5f520a048c089c719c618427eaa6
2019-10-31 21:04:21 -07:00
Hyeonguk Ryu
110a931752 Change from HTTP to HTTPS
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28333

Differential Revision: D18143824

Pulled By: soumith

fbshipit-source-id: 613fd2219814addc850c3b9fe7ebfd8510a5e5c8
2019-10-25 13:13:30 -07:00
Andreas Koepf
4b64ada531 Fix typo (#28281)
Summary:
I know this is really a minor one and the list of people to mention will be significantly larger in the future. Nevertheless I would love to see my name written in correct international spelling (the strange German o-umlaut in my name becomes oe).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28281

Differential Revision: D18007518

Pulled By: ezyang

fbshipit-source-id: 1d03065636d7f65ac6b376690256c0d021482958
2019-10-18 08:51:12 -07:00
Sebastian Meßmer
32c56747f7 Mention C++14 in the README (#26670)
Summary:
Technically, we don't need a C++14 compiler yet, but we will soon stop support for GCC 4. Requiring a "C++14" compiler excludes GCC 4, so it is a defensive statement. Some time later, we will actually require a C++14 compiler.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26670

Differential Revision: D17907257

Pulled By: smessmer

fbshipit-source-id: 5363d714f8d93597db008135f681b2e14d052fa0
2019-10-14 08:12:42 -07:00
jonmoon74
1c2cb6d523 Edits to ReadMe file (#27808)
Summary:
Grammar edits to the Readme file to make it read better in English
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27808

Differential Revision: D17901414

Pulled By: soumith

fbshipit-source-id: 02e67289dafaf9280cb1c3bb2f37087cd134cc23
2019-10-13 17:09:02 -07:00
Abbas
16ece1c9da Fixed typos and grammatical errors (#27465)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/27443
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27465

Differential Revision: D17810732

Pulled By: pietern

fbshipit-source-id: b8a62dd086a4f4a61c9aa6acfa495cf822995604
2019-10-08 09:31:45 -07:00
Nathan Goldbaum
0c4bc27539 Mention magma-cuda101 package in install instructions (#27325)
Summary:
There is a magma package for the newest CUDA verson (10.1), mention it here lest someone try to mistakenly use the version for CUDA 10.0.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27325

Differential Revision: D17749535

Pulled By: soumith

fbshipit-source-id: 2d34a7af1218e6157935bfd5e03f4d2c0f00f200
2019-10-03 15:21:53 -07:00
David Pollack
66d27504e3 allow building docker without torchvision (#26168)
Summary:
There is an issue with the torchvision version not matching the pytorch version if one builds the docker from a tag, see issue https://github.com/pytorch/pytorch/issues/25917.  The current solution requires one to re-init the submodules or manually change the version of torchvision.  This PR allows one to build the docker image without torchvision, which not only fixes the above mentioned bug but also frees non-image pytorch users from the tyranny of torchvision 😆.

In all seriousness, for NLP researchers especially torchvision isn't a necessity for pytorch and all non-essential items shouldn't be in the docker.  This option removes one extra thing that can go wrong.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26168

Differential Revision: D17550001

Pulled By: soumith

fbshipit-source-id: 48b8b9e22b75eef3afb392c618742215d3920e9d
2019-09-24 09:12:57 -07:00
Ailing Zhang
079cd4e1fc Remove requests as dependency (#26083)
Summary:
local build is slow... test in CI...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26083

Differential Revision: D17346949

Pulled By: ailzhang

fbshipit-source-id: f552d1a4be55ad4e2bd915af7c5a2c1b6667c446
2019-09-13 08:39:53 -07:00
James Reed
4d415bff2b Add requests as a legit dependency (#25596)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25596

Giving up on trying to limit this to just a py2 dependency

Test Plan: Imported from OSS

Differential Revision: D17171063

Pulled By: jamesr66a

fbshipit-source-id: 5df35fd128f3051dd9c6709f7d45323fedc12e65
2019-09-04 17:43:37 -07:00
Hong Xu
80e2fab952 Deprecate and set a date for removing NO_* and WITH_* (user) build options (#22474)
Summary:
Currently specifying different build options in respect to the "USE_"
series is in quite a disarray. There are a lot of build options that
accept three variants: USE_OPTION, WITH_OPTION, and NO_OPTION. Some
build options only accept USE_ and NO_ variant. Some accept only USE_.
This inconsistency is quite confusing and hard to maintain.

To resolve this inconsistency, we can either let all these build options
support all three variants, or we only support the USE_ variant.

This commit makes a step to the latter choice, i.e., deprecates and sets
a date for removing the NO_ and WITH_ variants and keeps only the
USE_ variant. This is likely better than the former solution because:

- NO_ and WITH_ variants are not documented.
- CMakeLists.txt only has the USE_ variants for relevant build options
  defined. It would be a surprise that when user pass these variables to
  CMake during rebuild and find them ineffective.
- Multiple variants are difficult to maintain.
- The behavior is confusing if more than one variant is passed. For
  example, what to be expected if one sets "NO_CUDA=1 USE_CUDA=1"?

The downside is that this will break backward compatibility for existing
build scripts in the future (if they used the undocumented build
options).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22474

Differential Revision: D16149396

Pulled By: ezyang

fbshipit-source-id: 7145b88ad195db2051772b9665dd708dfcf50b7d
2019-07-08 08:22:08 -07:00
Mingzhe Li
51d0da2802 Improve build docs and process for Windows (#21190)
Summary:
Fixes #21026.
1. Improve build docs for Windows
2. Change `BUILD_SHARED_LIBS=ON` for Caffe2 local builds
3. Change to out-source builds for LibTorch and Caffe2 (transferred to #21452)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21190

Differential Revision: D15695223

Pulled By: ezyang

fbshipit-source-id: 0ad69d7553a40fe627582c8e0dcf655f6f63bfdf
2019-06-06 13:46:52 -07:00
Hong Xu
9a989ec469 Add an option to stop the build process once cmake terminates. (#21034)
Summary:
Add an option to setup.py to stop the build process once cmake terminates. This leaves users a chance to fine adjust build options. Also update README accordingly.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21034

Differential Revision: D15530096

Pulled By: soumith

fbshipit-source-id: 71ac6ff8483c3ee77c38d88f0d059db53a7d3901
2019-05-28 17:11:00 -07:00
PgLoLo
ec45baf4dd tensor_illustration with correct numbers and better fonts for README file (#20751)
Summary:
Fix of README tensor image for issue #20641
Numbers are fixed, symbols made more readable.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20751

Differential Revision: D15495706

Pulled By: ezyang

fbshipit-source-id: b6013574d16253ec681fc57143efe3d53952fbe9
2019-05-24 09:18:18 -07:00
Sam Gross
6ec3c12255 Update references to minimum CUDA and cuDNN version (#20718)
Summary:
I didn't update the Windows references because I wasn't sure if they apply to CUDA 9. peterjc123 what should the Windows section say?
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20718

Differential Revision: D15459276

Pulled By: colesbury

fbshipit-source-id: 917e22f8ac75378d88c962c226b5a42b6799c79a
2019-05-22 14:54:54 -07:00
David Reiss
32803b52f6 Update Conda description in PyTorch README (#20726)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20726

Edward says it doesn't actually provide compilers,
but it does provide dependencies, so let's mention that instead.

Reviewed By: ezyang

Differential Revision: D15423316

fbshipit-source-id: 9b384f88e5bf7a3d2c132508620c276b49e1569f
2019-05-21 14:12:30 -07:00
Guanheng Zhang
0e77c0f5de Add ninja to PyTorch README.md file. (#20079)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/17572
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20079

Differential Revision: D15195388

Pulled By: zhangguanheng66

fbshipit-source-id: b7448b482f07e96753f727664416a5d0e85602b4
2019-05-03 07:13:51 -07:00
Amir Arsalan Soltani
792bc56ec2 Update README.md (#20088)
Summary:
Sometimes people need to checkout an older version and build PyTorch. In that case, they need to do `git submodule sync` and maybe `git submodule update --init` as mentioned [here](https://github.com/pytorch/pytorch/issues/20074).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20088

Differential Revision: D15195729

Pulled By: soumith

fbshipit-source-id: 73232b801e5524cdba462dd504fb973d95d0498c
2019-05-02 20:40:03 -07:00
davidriazati
947fd9c3f5 More doc edits (#19929)
Summary:
* document `torch.jit.Attribute`
* add JIT one-liner to `README.md`
* misc clarity edits](https://our.intern.facebook.com/intern/diff/15152418/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19929

Pulled By: driazati

Differential Revision: D15152418

fbshipit-source-id: dfee03f0a17300aaf453fcf17f418463288f66c2
2019-04-30 13:52:07 -07:00
huangyanhua
bacc8815c7 update Anaconda download link (#19794)
Summary:
Now `https://www.continuum.io/` is redirected to `https://www.anaconda.com` and old Anaconda download link `https://www.continuum.io/downloads` is dead. This PR update it to `https://www.anaconda.com/distribution/#download-section`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19794

Differential Revision: D15099538

Pulled By: soumith

fbshipit-source-id: 967dcda34d9d446c0d26c0014f10cc710f69a0c5
2019-04-26 09:45:44 -07:00
Soumith Chintala
8961ad8c5b add instructions for NVIDIA Jetson platforms (#18990)
Summary:
Thanks to dusty-nv , we now have Stable and Weekly wheels provided for the NVIDIA Jetson Platform. They require JetPack 4.2.

He's also maintaining source build instructions.

This PR adds links to the binaries and source build instructions to the README.

The links are dynamic, so when new stable / weekly wheels are available, Dustin will update the same URL to point to the new files
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18990

Differential Revision: D14820158

Pulled By: soumith

fbshipit-source-id: 761a56557decb72ad9c1b9f8a2745667f558eec3
2019-04-06 12:42:43 -07:00
Gao, Xiang
1497d45315 Remove Trainer from README.md (#18980)
Summary:
Trainer has been removed long time ago
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18980

Differential Revision: D14819855

Pulled By: ezyang

fbshipit-source-id: f62020e688ebf6663416aec7435bf1f531607941
2019-04-06 09:12:50 -07:00
Soumith Chintala
92c9fef860 update magma instructions (#18410)
Summary:
fixes https://github.com/pytorch/pytorch/issues/18389

cc: stas00
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18410

Differential Revision: D14594198

Pulled By: soumith

fbshipit-source-id: fb46ef77a36c90ad95e47f7066f5d32aa1f1370f
2019-03-24 13:15:11 -07:00