From f55f0da740df067f6046012505f37649b17b2005 Mon Sep 17 00:00:00 2001 From: peterjc123 Date: Mon, 23 Sep 2024 07:01:52 +0000 Subject: [PATCH] [docs] fix docs for ONNX2Torch --- docs/FAQ.md | 2 +- docs/FAQ_zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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