From 8edf1963103127247ae3ef96fc5ba6a96eb4a290 Mon Sep 17 00:00:00 2001 From: Stas Bekman Date: Wed, 14 Sep 2022 16:29:58 -0700 Subject: [PATCH] [doc] debug: fix import (#19042) correct the import statement --- docs/source/en/debugging.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/debugging.mdx b/docs/source/en/debugging.mdx index 7339d61a05..762e2a2a04 100644 --- a/docs/source/en/debugging.mdx +++ b/docs/source/en/debugging.mdx @@ -77,7 +77,7 @@ to the normal command line arguments, or pass `debug="underflow_overflow"` when If you're using your own training loop or another Trainer you can accomplish the same with: ```python -from .debug_utils import DebugUnderflowOverflow +from transformers.debug_utils import DebugUnderflowOverflow debug_overflow = DebugUnderflowOverflow(model) ``` @@ -271,7 +271,7 @@ Additionally, if you're instantiating the debugger in your own code, you can adj its default, e.g.: ```python -from .debug_utils import DebugUnderflowOverflow +from transformers.debug_utils import DebugUnderflowOverflow debug_overflow = DebugUnderflowOverflow(model, max_frames_to_save=100) ```