mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
Update docs/ContribOperators.md and the script that generates it. (#7399)
This commit is contained in:
parent
1bbe538379
commit
afa7b23609
3 changed files with 60 additions and 19 deletions
|
|
@ -56,6 +56,7 @@
|
|||
* <a href="#com.microsoft.Trilu">com.microsoft.Trilu</a>
|
||||
* <a href="#com.microsoft.Unique">com.microsoft.Unique</a>
|
||||
* <a href="#com.microsoft.WordConvEmbedding">com.microsoft.WordConvEmbedding</a>
|
||||
* <sub>experimental</sub> <a href="#com.microsoft.IsAllFinite">com.microsoft.IsAllFinite</a>
|
||||
* com.microsoft.nchwc
|
||||
* <a href="#com.microsoft.nchwc.AveragePool">com.microsoft.nchwc.AveragePool</a>
|
||||
* <a href="#com.microsoft.nchwc.Conv">com.microsoft.nchwc.Conv</a>
|
||||
|
|
@ -2673,6 +2674,46 @@ This version of the operator has been available since version 1 of the 'com.micr
|
|||
</dl>
|
||||
|
||||
|
||||
### <sub>experimental</sub> <a name="com.microsoft.IsAllFinite"></a><a name="com.microsoft.isallfinite">**com.microsoft.IsAllFinite**</a>
|
||||
|
||||
IsAllFinite
|
||||
|
||||
#### Version
|
||||
|
||||
No versioning maintained for experimental ops.
|
||||
#### Attributes
|
||||
|
||||
<dl>
|
||||
<dt><tt>isinf_only</tt> : int</dt>
|
||||
<dd>If true, check only for Inf, -Inf.</dd>
|
||||
<dt><tt>isnan_only</tt> : int</dt>
|
||||
<dd>If true, check only for NaN.</dd>
|
||||
</dl>
|
||||
|
||||
#### Inputs (1 - ∞)
|
||||
|
||||
<dl>
|
||||
<dt><tt>input</tt> (variadic) : V</dt>
|
||||
<dd>Input tensors to check.</dd>
|
||||
</dl>
|
||||
|
||||
#### Outputs
|
||||
|
||||
<dl>
|
||||
<dt><tt>output</tt> : T</dt>
|
||||
<dd>The output scalar. Its value is true if all input tensors are finite. Otherwise, the output value would be false.</dd>
|
||||
</dl>
|
||||
|
||||
#### Type Constraints
|
||||
|
||||
<dl>
|
||||
<dt><tt>V</tt> : tensor(float16), tensor(float), tensor(double), tensor(bfloat16)</dt>
|
||||
<dd>Constrain input and output types to float tensors.</dd>
|
||||
<dt><tt>T</tt> : tensor(bool)</dt>
|
||||
<dd>Constrain the output to a boolean tensor.</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
## com.microsoft.nchwc
|
||||
### <a name="com.microsoft.nchwc.AveragePool"></a><a name="com.microsoft.nchwc.averagepool">**com.microsoft.nchwc.AveragePool**</a>
|
||||
|
||||
|
|
|
|||
|
|
@ -1713,26 +1713,26 @@ def build_protoc_for_host(cmake_path, source_dir, build_dir, args):
|
|||
|
||||
|
||||
def generate_documentation(source_dir, build_dir, configs):
|
||||
# Randomly choose one build config
|
||||
config = next(iter(configs))
|
||||
cwd = get_config_build_dir(build_dir, config)
|
||||
if is_windows():
|
||||
cwd = os.path.join(cwd, config)
|
||||
operator_doc_path = os.path.join(source_dir, 'docs', 'ContribOperators.md')
|
||||
opkernel_doc_path = os.path.join(source_dir, 'docs', 'OperatorKernels.md')
|
||||
for config in configs:
|
||||
# Copy the gen_contrib_doc.py.
|
||||
shutil.copy(
|
||||
os.path.join(source_dir, 'tools', 'python', 'gen_contrib_doc.py'),
|
||||
os.path.join(build_dir, config))
|
||||
shutil.copy(
|
||||
os.path.join(source_dir, 'tools', 'python', 'gen_opkernel_doc.py'),
|
||||
os.path.join(build_dir, config))
|
||||
run_subprocess(
|
||||
[sys.executable,
|
||||
'gen_contrib_doc.py',
|
||||
'--output_path', operator_doc_path],
|
||||
cwd=os.path.join(build_dir, config))
|
||||
run_subprocess(
|
||||
[sys.executable,
|
||||
'gen_opkernel_doc.py',
|
||||
'--output_path', opkernel_doc_path],
|
||||
cwd=os.path.join(build_dir, config))
|
||||
shutil.copy(
|
||||
os.path.join(source_dir, 'tools', 'python', 'gen_contrib_doc.py'), cwd)
|
||||
shutil.copy(
|
||||
os.path.join(source_dir, 'tools', 'python', 'gen_opkernel_doc.py'),
|
||||
cwd)
|
||||
run_subprocess(
|
||||
[sys.executable,
|
||||
'gen_contrib_doc.py',
|
||||
'--output_path', operator_doc_path], cwd=cwd)
|
||||
run_subprocess(
|
||||
[sys.executable,
|
||||
'gen_opkernel_doc.py',
|
||||
'--output_path', opkernel_doc_path], cwd=cwd)
|
||||
docdiff = ''
|
||||
try:
|
||||
docdiff = subprocess.check_output(['git', 'diff', opkernel_doc_path], cwd=source_dir)
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ jobs:
|
|||
del wheel_filename_file
|
||||
python.exe -m pip install -q --upgrade %WHEEL_FILENAME%
|
||||
set PATH=$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig);%PATH%
|
||||
python $(Build.SourcesDirectory)\tools\ci_build\build.py --config $(BuildConfig) --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --build_nodejs --test --cmake_generator "Visual Studio 16 2019" --use_dnnl --build_wheel --enable_onnx_tests
|
||||
python $(Build.SourcesDirectory)\tools\ci_build\build.py --gen_doc --config $(BuildConfig) --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --build_nodejs --test --cmake_generator "Visual Studio 16 2019" --use_dnnl --build_wheel --enable_onnx_tests
|
||||
|
||||
workingDirectory: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)'
|
||||
displayName: 'Run tests'
|
||||
|
|
|
|||
Loading…
Reference in a new issue