INNER CODE UNIT · Python
wrap_common_options
neuralmagic/sparsezoo · src/sparsezoo/analyze_v1/cli.py:94
def wrap_common_options(*args, **kwargs):
"""
Wrapper that adds analyze options to command
"""
return command(*args, **kwargs)
return wrap_common_options
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
"""