pytorch/docs/source/compile
toma 2abbed42ee correct the generated code and corresponding text to make them consistent (#104596)
Fixes #104500

As discussed in #104500, the [corresponding doc](https://pytorch.org/docs/stable/dynamo/get-started.html#getting-started) for dynamo is inconsistent between the code and explanation. I have run the code example to get the correct code.
![image](https://github.com/pytorch/pytorch/assets/6964699/d11e0f2f-2225-4ba9-8934-b06c9fc78721)
This PR fixes the problem and makes the doc more readable.

cc:
@davidberard98 @ezyang  please help me check this PR, thanks!
Pull Request resolved: https://github.com/pytorch/pytorch/pull/104596
Approved by: https://github.com/ezyang
2023-07-04 22:56:03 +00:00
..
cudagraph_trees.rst CUDAGraph trees doc (#101902) 2023-05-23 03:35:43 +00:00
custom-backends.rst Replace master with main in links and docs/conf.py (#100176) 2023-05-02 18:20:32 +00:00
deep-dive.rst Switch dynamic_shapes to True by default (#103597) 2023-06-15 15:16:20 +00:00
dynamic-shapes.rst Switch dynamic_shapes to True by default (#103597) 2023-06-15 15:16:20 +00:00
fake-tensor.rst Fake Tensor Docs (#101882) 2023-05-19 21:39:34 +00:00
faq.rst [dynamo] Hide guard_fail_hook behind a flag to improve cache lookup time (+10% DebertaV2) (#100590) 2023-05-04 18:52:21 +00:00
fine_grained_apis.rst Fix torch.compile side panels refs (#102407) 2023-06-05 20:08:40 +00:00
get-started.rst correct the generated code and corresponding text to make them consistent (#104596) 2023-07-04 22:56:03 +00:00
guards-overview.rst Fix broken link in Dynamo's guards doc (#102183) (#102185) 2023-06-02 14:36:28 +00:00
index.rst [docs] Docs for writing ATen IR passes + FX Pattern matching (#100577) 2023-05-04 05:17:10 +00:00
inductor_profiling.rst torch.compile docs: "Profiling to understand torch.compile performance (#102862) 2023-06-06 22:00:36 +00:00
nn-module.rst Test and document dynamo backward hooks support (#99382) 2023-04-18 03:03:29 +00:00
performance-dashboard.rst Add a rst doc for the performance dashboard (#100592) 2023-05-04 18:28:09 +00:00
profiling_torch_compile.rst torch.compile docs: "Profiling to understand torch.compile performance (#102862) 2023-06-06 22:00:36 +00:00
technical-overview.rst
torchfunc-and-torchcompile.rst Docs for torchcompile and functorch (#101881) 2023-05-19 21:23:43 +00:00
transformations.rst [docs] Docs for writing ATen IR passes + FX Pattern matching (#100577) 2023-05-04 05:17:10 +00:00
troubleshooting.rst Fix outdated log settings in doc (#102285) (#102286) 2023-06-07 18:07:20 +00:00