Skip to content

AttributeError: 'ModelTask' object has no attribute 'replace_invoke' #2606

@csc010228

Description

@csc010228

When I run python3 run_benchmark.py test-user-invoke --model alexnet, I get an AttributeError error:

Running TorchBenchModelConfig(name='alexnet', test='eval', device='cuda', batch_size=1, extra_args=[], extra_env=None, output_dir=None, skip=False) ...Traceback (most recent call last):
  File "/home/chensichao/benchmark-mm/run_benchmark.py", line 48, in <module>
    run()
  File "/home/chensichao/benchmark-mm/run_benchmark.py", line 41, in run
    benchmark.run(bm_args)
  File "/home/chensichao/benchmark-mm/userbenchmark/test-user-invoke/run.py", line 94, in run
    result = run_config(config)
  File "/home/chensichao/benchmark-mm/userbenchmark/test-user-invoke/run.py", line 72, in run_config
    inject_model_invoke(model, user_defined_invoke)
  File "/home/chensichao/benchmark-mm/torchbenchmark/util/experiment/instantiator.py", line 45, in inject_model_invoke
    model_task.replace_invoke(inject_function.__module__, inject_function.__name__)
AttributeError: 'ModelTask' object has no attribute 'replace_invoke'

Then I search the source code, and I find that replace_invoke is not implemented in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions