Postprocessing Functions¶
Module: polygraphy.tools.args
- class ComparatorPostprocessArgs[source]¶
Bases:
BaseArgsComparator Postprocessing: applying postprocessing to outputs.
- parse_impl(args)[source]¶
Parses command-line arguments and populates the following attributes:
- postprocess¶
Maps output names to Top-K parameters. Each value is an integer K (top-K along the last axis) or a
(K, axis)tuple. For example:{"output1": 5, "output2": (3, 1)}
- Type:
Dict[str, Union[int, Tuple[int, int]]]
- postprocess_func_script¶
Path to a script defining a custom postprocessing function.
- Type:
str
- postprocess_func_name¶
The name of the function in the script that performs postprocessing.
- Type:
str