26 Commits

Author SHA1 Message Date
d5cdc36943 [BE][10/16] fix typos in torch/ (torch/csrc/jit/) (#156320)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/156320
Approved by: https://github.com/albanD
ghstack dependencies: #156318
2025-07-02 22:55:29 +00:00
72d2dba992 Add None return type to init (#132335)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132335
Approved by: https://github.com/albanD
2024-08-01 15:26:45 +00:00
86237dc59b fix typo in serialization.md (#106191)
Found this minor typo while reviewing the TorchScript docs
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106191
Approved by: https://github.com/Skylion007
2023-07-29 00:01:59 +00:00
16a16d1803 Incorrect links #96515 (#96536)
Fixes #96515

Pull Request resolved: https://github.com/pytorch/pytorch/pull/96536
Approved by: https://github.com/kit1980
2023-03-13 22:26:21 +00:00
d80a5f9a96 Fix typo under torch directory (#87274)
This PR fixes typo in .md files under torch directory

Pull Request resolved: https://github.com/pytorch/pytorch/pull/87274
Approved by: https://github.com/albanD
2022-10-21 14:22:20 +00:00
79a258f448 s/foward/forward/g (#58497)
Summary:
Annoying typo.

Prompted by these profiling results: https://github.com/pytorch/pytorch/issues/56419#issuecomment-825787828

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

Reviewed By: malfet

Differential Revision: D28521081

Pulled By: Chillee

fbshipit-source-id: ab91a2e167dd7d3387fd56106a6cff81f7a32f10
2021-05-19 11:42:42 -07:00
75651e3cc4 Add remaining ToCs to ToC lint (#56487)
Summary:
The lint was originally added in https://github.com/pytorch/pytorch/issues/54974, but at the time I didn't realize that these other Markdown files also each have a table of contents:

- `GLOSSARY.md`
- `torch/csrc/jit/OVERVIEW.md`
- `torch/csrc/jit/docs/serialization.md`
- `torch/fx/OVERVIEW.md`

This PR adds those files to the lint, and also changes the rule from using a fixed list of filenames to a `git grep` command that finds all Markdown files containing this magic comment:

```md

```

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

Test Plan: The "Lint / toc" job in GitHub Actions.

Reviewed By: janeyx99

Differential Revision: D27884885

Pulled By: samestep

fbshipit-source-id: 5462437502b17fba93abf5098e21754bf566a4fe
2021-04-20 10:28:47 -07:00
c619892482 Fix errata (#49903)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/49903

Test Plan: Imported from OSS

Reviewed By: ngimel

Differential Revision: D25718411

Pulled By: ansley

fbshipit-source-id: 0cc365c5a53077752dc1c5a5c4a65b873baa3604
2020-12-28 20:40:41 -08:00
856215509d [jit] update to serialization doc (#39025)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/39025

Test Plan: Imported from OSS

Differential Revision: D21911710

Pulled By: wanchaol

fbshipit-source-id: e3c346feef2ddc36c671d5e1469702854dbfebb3
2020-06-05 17:49:08 -07:00
b9c537514c [JIT] Remove import statement thing in serialization docs (#38578)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38578

Test Plan: Imported from OSS

Differential Revision: D21603383

Pulled By: jamesr66a

fbshipit-source-id: 07c7eb62f048406f2e21528e32c677d18eb87cce
2020-05-15 18:26:36 -07:00
c235be42dd [jit] kill script namespace (#34515)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34515

Once upon a time we thought this was necessary. In reality it is not, so
removing it.

For backcompat, our public interface (defined in `api/`) still has
typedefs to the old `script::` names.

There was only one collision: `Pass` as a `Stmt` and `Pass` as a graph
transform. I renamed one of them.

Test Plan: Imported from OSS

Differential Revision: D20353503

Pulled By: suo

fbshipit-source-id: 48bb911ce75120a8c9e0c6fb65262ef775dfba93
2020-03-11 23:32:48 -07:00
d6485b411b [jit] add top-level readme to csrc/jit (#33916)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33916

Test Plan: Imported from OSS

Differential Revision: D20150771

Pulled By: suo

fbshipit-source-id: c7550954ddd6a294ce833348bf9fa058503e9bd7
2020-02-27 19:21:05 -08:00
806e7daa1f Rename TorchScript compiler to IR emitter to better reflect its function. (#33127)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33127

Test Plan: Imported from OSS

Differential Revision: D19806503

Pulled By: ZolotukhinM

fbshipit-source-id: ab78bdbbac5f12dbcc6c2e2573f5862a16ffcf3d
2020-02-12 18:45:13 -08:00
ca33aeba09 [JIT] Add Exit Transform / Convert To SSA to docs
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/24114

Differential Revision: D19780828

Pulled By: eellison

fbshipit-source-id: d481ad886b2ad6349a1646672e507336d45759fb
2020-02-06 18:04:06 -08:00
ef50161ec9 [JIT] Update OVERVIEW.md
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28870

Differential Revision: D19698758

Pulled By: ezyang

fbshipit-source-id: 23167ec5bf9f7ab81012a124206bb4c2bdd6ca06
2020-02-03 10:32:36 -08:00
666472a38d [docs] Change fut.wait() to torch.jit._wait(fut) in jit overview docs (#32336)
Summary:
It looks like the jit Future does not have a `wait()` anymore and this throws an error when trying to run this code.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32336

Differential Revision: D19559922

Pulled By: rohan-varma

fbshipit-source-id: a5aa67990595e98e0682a20cf5aced17c2ae85bb
2020-01-24 16:40:22 -08:00
4ec2448580 Update OVERVIEW.md (#31373)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31373

Just some housekeeping

Test Plan: Imported from OSS

Differential Revision: D19145987

Pulled By: suo

fbshipit-source-id: ae8142dab2bddcf0b628c27c426ca26334c48238
2019-12-17 21:29:16 -08:00
e0ab255a51 Updates to serialization.md (#31372)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31372

Keeping it current with the latest changes.

Test Plan: Imported from OSS

Differential Revision: D19145986

Pulled By: suo

fbshipit-source-id: 88122e66fa87a354ef8e87faffe58551074e3f03
2019-12-17 21:29:12 -08:00
b7d472a109 Some fixes for jit overview doc (#28112)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28112

att

Test Plan:
reading

Imported from OSS

Differential Revision: D18173102

fbshipit-source-id: d8574758288bfce08eaf0f4f6163284defb56d6e
2019-10-29 12:08:42 -07:00
27b5a6c577 Add documentation to logging
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26175

Differential Revision: D17371085

Pulled By: Krovatkin

fbshipit-source-id: ea06f4e16fc320940a299e8e1d4f4d7c76f5950a
2019-09-13 12:13:16 -07:00
bdc57d3833 Merge ProfiledTensorType and TensorType (#24284)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24284

This PR finishes the unification of all Tensor types into a single object.
ProfiledTensorType is renamed to TensorType and the old TensorType is
deleted.

Notes:
* Fixes bug in merge for VaryingShape by changing its representation to an
 optional list of optional ints.
* Removes ProfiledTensorType::create(type) invocations that can now
  simply be expect calls on tensor type.

Test Plan: Imported from OSS

Differential Revision: D16794034

Pulled By: zdevito

fbshipit-source-id: 10362398d0bb166d0d385d74801e95d9b87d9dfc
2019-08-20 13:01:28 -07:00
0cbd7fa46f remove CompleteTensorType
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/24169

Test Plan: Imported from OSS

Reviewed By: jamesr66a

Differential Revision: D16765329

Pulled By: zdevito

fbshipit-source-id: 88560cefba635c3d586a3e4dee67f9b1d901a642
2019-08-15 13:31:34 -07:00
c2549cb8d3 Remove DimensionedTensorType (#24077)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24077

This replaces all uses of DimensionedTensorType with ProfiledTensorType.
For places where we propagate shape information, we still follow the
dimension-only propagation rules, meaning that even if full size information
is known on inputs the outputs will only have dimension information.

This fixes several bugs in existing implentations that this change uncovered:
* requires_grad was not propgated correctly across loops
* requires_grad on ProfiledTensorType returned false when requires_grad information
  is unknown but the conservative result is true
* some equality code on ProfiledTensorType contained bugs.

Test Plan: Imported from OSS

Reviewed By: suo

Differential Revision: D16729581

Pulled By: zdevito

fbshipit-source-id: bd9f823c1c6b1d06a236a1b5b2b2fcdf0245edce
2019-08-13 10:05:47 -07:00
88b96ba951 Update relative links in OVERVIEW.md
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23627

Test Plan: Imported from OSS

Differential Revision: D16590415

Pulled By: suo

fbshipit-source-id: 9f4fabd77b80f08f96f4bc969b43aa8ff3d4ac96
2019-07-31 15:45:04 -07:00
ab584c738b Move overview to docs/ folder
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23457

Test Plan: Imported from OSS

Differential Revision: D16552603

Pulled By: suo

fbshipit-source-id: 91547f870c563ca78382b8fdd7a42b472ed07ea4
2019-07-30 17:20:01 -07:00
1c86b8a783 add docs for serialization
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23456

Test Plan: Imported from OSS

Differential Revision: D16552602

Pulled By: suo

fbshipit-source-id: 41e333af97e43fcef2b7f6e02c36a805ceb64573
2019-07-30 17:19:57 -07:00