INNER CODE UNIT · Python
analyze_performance_options
neuralmagic/sparsezoo · src/sparsezoo/analyze_v1/cli.py:103
def analyze_performance_options(command: click.Command):
"""
A decorator that takes in a click command and adds analyze api performance
analysis options to it. This decorator can be directly imported and
used on top of another click command.
:param command: A click callable command
:return: The same click callable but with analyze api options attached
"""
@click.option(
"--batch-size-latency",
default=1,
type=int,
help="The batch size to run latency benchmarks at",
)
@click.option(
"--impose",