Skip to content

Commit 306453f

Browse files
authored
fix the link to the script in the doc. fix some error messages (#960)
1 parent 0b5f06b commit 306453f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/ContribOperators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Contrib Operator Schemas
22
*This file is automatically generated from the
3-
[def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/onnxruntime/python/tools/gen_doc.py).
3+
[def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/tools/python/gen_doc.py).
44
Do not modify directly and instead edit operator definitions.*
55

66
* com.microsoft

tools/ci_build/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def generate_documentation(source_dir, build_dir, configs):
658658

659659

660660
if len(docdiff) > 0:
661-
raise BuildError("The updated operator document file "+operator_doc_path+" must be checked in.\n diff:\n"+docdiff)
661+
raise BuildError('The updated operator document file '+str(operator_doc_path)+' must be checked in.\n diff:\n'+str(docdiff))
662662

663663

664664
def main():

tools/python/gen_doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def main(args): # type: (Type[Args]) -> None
307307
fout.write('## Contrib Operator Schemas\n')
308308
fout.write(
309309
"*This file is automatically generated from the\n"
310-
" [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/onnxruntime/python/tools/gen_doc.py).\n"
310+
" [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/tools/python/gen_doc.py).\n"
311311
" Do not modify directly and instead edit operator definitions.*\n")
312312

313313
# domain -> support level -> name -> [schema]

0 commit comments

Comments
 (0)