You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: beginner_source/PyTorch Cheat.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,13 @@ from torch.jit import script, trace # hybrid frontend decorator and tracin
26
26
```
27
27
See [autograd](https://pytorch.org/docs/stable/autograd.html), [nn](https://pytorch.org/docs/stable/nn.html), [functional](https://pytorch.org/docs/stable/nn.html#torch-nn-functional) and [optim](https://pytorch.org/docs/stable/optim.html)
28
28
29
-
### Hybrid frontend
29
+
### Torchscript and JIT
30
30
31
31
```
32
32
torch.jit.trace() # takes your module or function and an example data input, and traces the computational steps that the data encounters as it progresses through the model
33
33
@script # decorator used to indicate data-dependent control flow within the code being traced
34
34
```
35
-
See [hybrid frontend](https://pytorch.org/docs/stable/hybridfrontend)
35
+
See [Torchscript](https://pytorch.org/docs/stable/jit.html)
0 commit comments