From 2bc9fbb62141dc8ab3c9355690cf2cb2888217eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Dupr=C3=A9?= Date: Thu, 20 Jul 2023 16:02:22 +0200 Subject: [PATCH] Fix url in the code documentation (graph optimizations) (#16770) ### Description Fix a wrong url in the documentation as mentioned in issue #16678. ### Motivation and Context Better documentation. --- include/onnxruntime/core/session/onnxruntime_c_api.h | 2 +- objectivec/include/ort_enums.h | 2 +- onnxruntime/python/tools/transformers/optimizer.py | 2 +- tools/python/util/optimize_onnx_model.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index 12e68630ea..75359602f8 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -987,7 +987,7 @@ struct OrtApi { /** \brief Set the optimization level to apply when loading a graph * - * Please see https://onnxruntime.ai/docs/performance/graph-optimizations.html for an in-depth explanation + * Please see https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html for an in-depth explanation * \param[in,out] options The session options object * \param[in] graph_optimization_level The optimization level * diff --git a/objectivec/include/ort_enums.h b/objectivec/include/ort_enums.h index d505ce2c4e..6bc29aaa00 100644 --- a/objectivec/include/ort_enums.h +++ b/objectivec/include/ort_enums.h @@ -43,7 +43,7 @@ typedef NS_ENUM(int32_t, ORTTensorElementDataType) { /** * The ORT graph optimization levels. * See here for more details: - * https://onnxruntime.ai/docs/performance/graph-optimizations.html + * https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html */ typedef NS_ENUM(int32_t, ORTGraphOptimizationLevel) { ORTGraphOptimizationLevelNone, diff --git a/onnxruntime/python/tools/transformers/optimizer.py b/onnxruntime/python/tools/transformers/optimizer.py index 8719380ff2..99b48e5014 100644 --- a/onnxruntime/python/tools/transformers/optimizer.py +++ b/onnxruntime/python/tools/transformers/optimizer.py @@ -207,7 +207,7 @@ def optimize_model( ): """Optimize Model by OnnxRuntime and/or python fusion logic. - ONNX Runtime has graph optimizations (https://onnxruntime.ai/docs/performance/graph-optimizations.html). + ONNX Runtime has graph optimizations (https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html). However, the coverage is limited. We also have graph fusions that implemented in Python to improve the coverage. They can combined: ONNX Runtime will run first when opt_level > 0, then graph fusions in Python will be applied. diff --git a/tools/python/util/optimize_onnx_model.py b/tools/python/util/optimize_onnx_model.py index 4cb9b862b3..b7ebb54b9c 100644 --- a/tools/python/util/optimize_onnx_model.py +++ b/tools/python/util/optimize_onnx_model.py @@ -14,7 +14,7 @@ def optimize_model_helper(): f"{os.path.basename(__file__)}:{optimize_model_helper.__name__}", description=""" Optimize an ONNX model using ONNX Runtime to the specified level. - See https://onnxruntime.ai/docs/performance/graph-optimizations.html for more + See https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html for more details of the optimization levels.""", )