Skip to content

Commit 40d08a8

Browse files
styling code snnipet
1 parent 18ac193 commit 40d08a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_get_started/pytorch.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ compiled_model = torch.compile(model)
153153

154154
This `compiled_model` holds a reference to your model and compiles the `forward` function to a more optimized version. When compiling the model, we give a few knobs to adjust it:
155155

156-
```
156+
```python
157157
def torch.compile(model: Callable,
158-
*,
159-
mode: Optional[str] = "default",
160-
dynamic: bool = False,
161-
fullgraph:bool = False,
162-
backend: Union[str, Callable] = "inductor",
163-
# advanced backend options go here as kwargs
164-
**kwargs
158+
*,
159+
mode: Optional[str] = "default",
160+
dynamic: bool = False,
161+
fullgraph:bool = False,
162+
backend: Union[str, Callable] = "inductor",
163+
# advanced backend options go here as kwargs
164+
**kwargs
165165
) -> torch._dynamo.NNOptimizedModule
166166
```
167167

0 commit comments

Comments
 (0)