Skip to content

Commit 8edf196

Browse files
authored
[doc] debug: fix import (#19042)
correct the import statement
1 parent abca174 commit 8edf196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/en/debugging.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ to the normal command line arguments, or pass `debug="underflow_overflow"` when
7777
If you're using your own training loop or another Trainer you can accomplish the same with:
7878

7979
```python
80-
from .debug_utils import DebugUnderflowOverflow
80+
from transformers.debug_utils import DebugUnderflowOverflow
8181

8282
debug_overflow = DebugUnderflowOverflow(model)
8383
```
@@ -271,7 +271,7 @@ Additionally, if you're instantiating the debugger in your own code, you can adj
271271
its default, e.g.:
272272

273273
```python
274-
from .debug_utils import DebugUnderflowOverflow
274+
from transformers.debug_utils import DebugUnderflowOverflow
275275

276276
debug_overflow = DebugUnderflowOverflow(model, max_frames_to_save=100)
277277
```

0 commit comments

Comments
 (0)