Skip to content

Commit

Permalink
Fix url in the code documentation (graph optimizations) (microsoft#16770
Browse files Browse the repository at this point in the history
)

### Description
Fix a wrong url in the documentation as mentioned in issue microsoft#16678.



### Motivation and Context
Better documentation.
  • Loading branch information
xadupre authored Jul 20, 2023
1 parent c314d77 commit 2bc9fbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/onnxruntime/core/session/onnxruntime_c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion objectivec/include/ort_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/python/tools/transformers/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/python/util/optimize_onnx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.""",
)

Expand Down

0 comments on commit 2bc9fbb

Please sign in to comment.