INNER CODE UNIT · Python

analyze_options

neuralmagic/sparsezoo · src/sparsezoo/analyze_v1/cli.py:36

def analyze_options(command: click.Command):
    """
    A decorator that takes in a click command and adds analyze api options
    to it, this method is meant to be a single source of truth across all
    analyze api(s). 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.argument(
        "model_path",
        type=str,
        required=True,
    )
    @click.option(
        "--compare",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…