apeltop
e7635c06ce
Fix typos in docs ( #80602 )
...
I hope it helps.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80602
Approved by: https://github.com/kit1980
2022-08-29 23:32:44 +00:00
gmagogsfm
358e908162
Add Union type to TorchScript Language Ref ( #69514 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/69514
Reviewed By: tugsbayasgalan
Differential Revision: D32909371
Pulled By: gmagogsfm
fbshipit-source-id: af1c3040cd59ee913dc576cf8a8c759313f1e07f
2021-12-07 12:53:54 -08:00
Vansh Sharma
ff125a3624
Minor changes in documentation ( #68557 )
...
Summary:
Fixed some small typos
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68557
Reviewed By: mruberry
Differential Revision: D32538749
Pulled By: ngimel
fbshipit-source-id: 09a9cd4031463b6a40d7307bd8fcb7d364444ac3
2021-11-18 17:57:16 -08:00
Kenichi Maehashi
6ed68f3f84
Document torch.jit.is_tracing() ( #67326 )
...
Summary:
This PR adds `torch.jit.is_tracing()` to the JIT API reference.
This function is widely used but left undocumented: https://github.com/search?q=torch.jit.is_tracing&type=code
Pull Request resolved: https://github.com/pytorch/pytorch/pull/67326
Reviewed By: tugsbayasgalan
Differential Revision: D31985251
Pulled By: Krovatkin
fbshipit-source-id: 852b432b08d63df8bd7a7a02c9555e61f5f37978
2021-10-28 09:56:09 -07:00
nikithamalgi
bf053a1296
Fix hasattr support type ( #57950 )
...
Summary:
`hasattr` is partially supported. This PR fixes that in the builtin table.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57950
Reviewed By: pbelevich
Differential Revision: D28329005
Pulled By: nikithamalgifb
fbshipit-source-id: c4cfba9badcc8f7cbc8250a5c21dfb62b35a83fc
2021-05-10 12:21:56 -07:00
Holly Sweeney
626ae7f036
Copy edit of TorchScript Language Reference ( #57694 )
...
Summary:
Initial copy edit of the file.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57694
Reviewed By: malfet, ngimel
Differential Revision: D28289209
Pulled By: holly1238
fbshipit-source-id: 7035d6790767a2f758e6019ae63df16537ef2725
2021-05-07 12:17:32 -07:00
Yanan Cao
2aadeac0ff
Remove duplicate entry for filter in language ref v2 ( #57154 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57154
Reviewed By: zou3519
Differential Revision: D28061690
Pulled By: gmagogsfm
fbshipit-source-id: b895238c0425cc6b60f5e19c67fc5bc6e0115d7f
2021-04-29 04:52:50 -07:00
Nikitha Malgi
ce79bd255d
Fix doc issues ( #57153 )
...
Summary:
Fixes inconsistencies in the TorchScript Language reference.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57153
Reviewed By: zou3519, gmagogsfm
Differential Revision: D28061449
Pulled By: nikithamalgifb
fbshipit-source-id: a055c7b1417391afe00ec0b35e1042acb049feed
2021-04-28 11:47:10 -07:00
Zhengxu Chen
8176ab6ca0
[JIT] Put explicit error message on class attribute accesses. ( #55723 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55723
Resolving https://github.com/pytorch/pytorch/issues/51139
Test Plan:
python test/test_jit.py TestClassType.test_unresolved_attributes
Imported from OSS
Reviewed By: gmagogsfm
Differential Revision: D27691960
fbshipit-source-id: 1d078a4ab25af1a73109ca6ef0333a67a634bff6
2021-04-16 15:47:10 -07:00
Nikitha Malgi
643dd26389
Fix formatting for the new language reference ( #56042 )
...
Summary:
This PR fixes the formatting issues in the new language reference
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56042
Reviewed By: gmagogsfm
Differential Revision: D27830179
Pulled By: nikithamalgifb
fbshipit-source-id: bce3397d4de3f1536a1a8f0a16f10a703e7d4406
2021-04-16 14:18:09 -07:00
Yukio Siraichi
93bf0ae6fc
Remove legacy constructor calls from pytorch codebase. ( #54142 )
...
Summary:
Follow up from https://github.com/pytorch/pytorch/issues/53889
Related to https://github.com/pytorch/pytorch/issues/47112
Removing every occurrence of the legacy constructor call present in PyTorch at:
- _docs_
- _benchmarks_
- _test_
- _caffe2_
- _CONTRIBUTING.md_
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54142
Reviewed By: ngimel
Differential Revision: D27699450
Pulled By: mruberry
fbshipit-source-id: 530aa3f5746cc8bc1407d5d51b2bbd8075e30546
2021-04-11 15:45:17 -07:00
Yanan Cao
ec609e7420
Adds torch.* API section for TorchScript Lang Ref ( #53236 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53236
Reviewed By: SplitInfinity
Differential Revision: D27526584
Pulled By: gmagogsfm
fbshipit-source-id: ea931ea63aa4b37a7782935a1760bebffedc5b67
2021-04-02 03:01:08 -07:00
Yanan Cao
1b2b3ca86d
Language Ref Python Builtin Functions and Values ( #52830 )
...
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52830
Reviewed By: SplitInfinity, nikithamalgifb
Differential Revision: D27407474
Pulled By: gmagogsfm
fbshipit-source-id: 06fcafbcc66376c5f1818cb12fca2f2a57843c9d
2021-04-01 10:14:03 -07:00
nikithamalgi
790b69e096
Language Ref for Statements in Torchscript ( #52847 )
...
Summary:
Addresses the Statements supported in Torchscript for Language Spec
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52847
Reviewed By: gmagogsfm
Differential Revision: D27463142
Pulled By: nikithamalgifb
fbshipit-source-id: ff3def1b878092b0a2afc7c2f47b7857e6658ecf
2021-03-31 19:15:53 -07:00
nikithamalgi
444e5f0b60
Add Type System (I) ( #53244 )
...
Summary:
**Summary**
This commit adds a new .rst file to update the language specification with the updated content for the Type System section.
**Test Plan**

Pull Request resolved: https://github.com/pytorch/pytorch/pull/53244
Reviewed By: H-Huang
Differential Revision: D27445210
Pulled By: nikithamalgifb
fbshipit-source-id: 984c25b06686ba7a72cc03c5c069d819709eedb8
2021-03-30 23:10:27 -07:00
Meghan Lele
d60874354f
[docs] Add updated TorchScript language reference section for types ( #53673 )
...
Summary:
**Summary**
This commit adds information about type annotation and inference to
the updated language specification. It will be rebased on top of https://github.com/pytorch/pytorch/issues/52494
after it lands.
**Test Plan**
Continuous integration.
Screen capture:
https://user-images.githubusercontent.com/4392003/110560184-66371f80-80fa-11eb-803a-923cf8de25ff.mov
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53673
Reviewed By: gmagogsfm
Differential Revision: D27413001
Pulled By: SplitInfinity
fbshipit-source-id: b54b300b4b1f10537ec06e2ee9eeb6d2b1f1810b
2021-03-30 10:32:58 -07:00
Meghan Lele
b69dd910e8
[docs] Add starter content for new TorchScript language reference ( #53837 )
...
Summary:
**Summary**
This commit adds a new .rst file to use for updating the language specification and prepopulates it with the updated content for the expressions section.
**Test Plan**
https://user-images.githubusercontent.com/4392003/110441235-638ee880-806e-11eb-83ae-3b908bf00d5b.mov
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53837
Reviewed By: nikithamalgifb
Differential Revision: D26990801
Pulled By: SplitInfinity
fbshipit-source-id: 3b4e711bfaa8aac4ee3a075822fed7267a818121
2021-03-11 18:18:27 -08:00
Edward Yang
ffac9b2ead
Revert D26965463: [pytorch][PR] [docs] Add starter content for new TorchScript language reference
...
Test Plan: revert-hammer
Differential Revision:
D26965463 (d49c5c74f5 )
Original commit changeset: 246c76a56d91
fbshipit-source-id: 50de1a2ac92204a2f3a2ad9b8fa163338062bf58
2021-03-11 07:26:00 -08:00
Meghan Lele
d49c5c74f5
[docs] Add starter content for new TorchScript language reference ( #52494 )
...
Summary:
**Summary**
This commit adds a new .rst file to use for updating the language specification and prepopulates it with the updated content for the expressions section.
**Test Plan**
https://user-images.githubusercontent.com/4392003/110441235-638ee880-806e-11eb-83ae-3b908bf00d5b.mov
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52494
Reviewed By: nikithamalgifb
Differential Revision: D26965463
Pulled By: SplitInfinity
fbshipit-source-id: 246c76a56d911a8061e720abd200a44d7dfa1f35
2021-03-10 19:36:27 -08:00