Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Rauber committed Aug 14, 2020
1 parent 3fe271a commit 947450e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/generic-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Generic Functions

Using the conversion functions shown in [Converting](./converting.md), we can already define a simple framework-agnostic function.

```pyhon
```python
import eagerpy as ep

def norm(x):
Expand All @@ -19,7 +19,7 @@ def norm(x):
This function can be called with a native tensor from any framework and it will return the norm of that tensor, again as a native tensor from that framework.

Calling the `norm` function using a PyTorch tensor:
```pyhon
```python
import torch
norm(torch.tensor([1., 2., 3.]))
# tensor(3.7417)
Expand Down

0 comments on commit 947450e

Please sign in to comment.