diff --git a/docs/FAQ.md b/docs/FAQ.md index 950224e0..114449e2 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -330,7 +330,7 @@ from onnx2pytorch import ConvertModel ```py # Import import_patcher from TinyNN from tinynn.graph.tracer import import_patcher -# Apply import_patcher during module for onnx2torch +# Apply import_patcher during module import for onnx2torch with import_patcher(): from onnx2torch import convert diff --git a/docs/FAQ_zh-CN.md b/docs/FAQ_zh-CN.md index 760e5ee3..9daea62b 100644 --- a/docs/FAQ_zh-CN.md +++ b/docs/FAQ_zh-CN.md @@ -328,7 +328,7 @@ from onnx2pytorch import ConvertModel ```py # Import import_patcher from TinyNN from tinynn.graph.tracer import import_patcher -# Apply import_patcher during module for onnx2torch +# Apply import_patcher during module import for onnx2torch with import_patcher(): from onnx2torch import convert