@@ -910,18 +910,22 @@ def infer_arguments(
910910 """Infers arguments based on the collected tensors.
911911
912912 Args:
913- index_or_args_or_kwargs: If missing, the method selects one set of inputs
913+ index_or_args_or_kwargs:
914+ If missing, the method selects one set of inputs
914915 among the available ones, usually the set of inputs containing
915916 with the highest number of tensors.
916917 It then replaces None values and missing tensors with empty tensors.
917918 If not missing, it can be an integer to fetch one of the stored set
918919 or some inputs.
919- flat: If True, it returns a flattened list of tensors,
920+ flat:
921+ If True, it returns a flattened list of tensors,
920922 if False, it returns a tuple or a dictionary preserving
921923 the nested structures.
922- as_args_kwargs: If True, the method always returns `(args, kwargs)`,
924+ as_args_kwargs:
925+ If True, the method always returns `(args, kwargs)`,
923926 otherwise, it returns either a tuple (only args) or a dictionary
924927 (only kwargs) or raises an exception if it cannot do so.
928+
925929 Returns:
926930 Inferred arguments, every optional tensor is replaced by an empty tensor.
927931 """
@@ -982,15 +986,22 @@ def check_discrepancies(
982986 with the saved onnx model.
983987
984988 Args:
985- onnx_model: ONNX Model to verify.
986- atol: Absolute tolerance, recommended values, 1e-4 for float, 1e-2 for float16.
987- rtol: Relative tolerance.
988- hist: Thresholds, the function determines the number of discrepancies
989+ onnx_model:
990+ ONNX Model to verify.
991+ atol:
992+ Absolute tolerance, recommended values, 1e-4 for float, 1e-2 for float16.
993+ rtol:
994+ Relative tolerance.
995+ hist:
996+ Thresholds, the function determines the number of discrepancies
989997 above these thresholds.
990- progress_bar: Shows a progress bar (requires :epkg:`tqdm`).
991- include_io: Shows inputs/outputs shapes in the summary
998+ progress_bar:
999+ Shows a progress bar (requires :epkg:`tqdm`).
1000+ include_io:
1001+ Shows inputs/outputs shapes in the summary
9921002 returned by this function.
993- skip_none: Does not check discrepancies when an output is None.
1003+ skip_none:
1004+ Does not check discrepancies when an output is None.
9941005
9951006 Returns:
9961007 A list of dictionaries, ready to be consumed by a dataframe.
0 commit comments