Skip to content

Commit 30459e5

Browse files
committed
doc
1 parent 04f2291 commit 30459e5

File tree

1 file changed

+10
-0
lines changed
  • onnx_diagnostic/torch_onnx

1 file changed

+10
-0
lines changed

onnx_diagnostic/torch_onnx/sbs.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,16 @@ def post_process(obs):
338338
print("final results")
339339
df = pandas.DataFrame(results)
340340
print(df)
341+
342+
A command line can also be run:
343+
344+
.. code-block:: bash
345+
346+
python -m onnx_diagnostic sbs -i <tensors>.input.pt \\
347+
--ep <exported_program>.pt2 \\
348+
-m <model>.onnx \\
349+
-o results.xlsx \\
350+
-v 1 --atol=0.1 --rtol=1
341351
"""
342352
assert callable(run_cls), f"run_cls={run_cls} not a callable"
343353
str_kws = dict(with_shape=True, with_device=True, with_min_max=True)

0 commit comments

Comments
 (0)