Skip to content

ScriptAction object has no attribute parent #178

@anandhu-eng

Description

@anandhu-eng

Reference:

anandhu@mlc2:~/MLC/repos/anandhu-eng@mlperf-automations$ mlc run script --tags=run-mlperf,inference,_find-performance,_full,_r5.0-dev --model=pointpainting --implementation=reference --framework=pytorch --category=datacenter --scenario=SingleStream --execution_mode=test --device=cuda  --docker --quiet --test_query_count=50 --waymo_path=/data/common/rod/waymo/kitti_format --pointpillars_checkpoint_path=/data/common/rod/waymo/pp_ep36.pth --deeplab_resnet50_path=/data/common/rod/waymo/best_deeplabv3plus_resnet50_waymo_os16.pth --docker_mlc_repo=anandhu-eng@mlperf-automations --docker_mlc_repo_branch=pointpillars --env.MLC_USE_DATASET_FROM_HOST=yes --mlc_docker_cache=no --adr.scipy.version=1.15.1 --env.MLC_USE_MODEL_FROM_HOST=yes --adr.inference-src.tags=_repo.https://github.com/anandhu-eng/inference.git,_branch.patch-20
2025-02-03 07:27:38,885 - mlc.main - INFO - Repos path for Index: /home/anandhu/MLC/repos
2025-02-03 07:27:38,885 - mlc.main - INFO - Repos path for Index: /home/anandhu/MLC/repos
2025-02-03 07:27:40,913 - mlc.main - INFO - Shared index for script saved to /home/anandhu/MLC/repos/index_script.json.
2025-02-03 07:27:40,913 - mlc.main - INFO - Shared index for script saved to /home/anandhu/MLC/repos/index_script.json.
2025-02-03 07:27:40,914 - mlc.main - INFO - Shared index for cache saved to /home/anandhu/MLC/repos/index_cache.json.
2025-02-03 07:27:40,914 - mlc.main - INFO - Shared index for cache saved to /home/anandhu/MLC/repos/index_cache.json.
2025-02-03 07:27:40,914 - mlc.main - INFO - Shared index for experiment saved to /home/anandhu/MLC/repos/index_experiment.json.
2025-02-03 07:27:40,914 - mlc.main - INFO - Shared index for experiment saved to /home/anandhu/MLC/repos/index_experiment.json.
Traceback (most recent call last):
  File "/home/anandhu/.local/bin/mlc", line 8, in <module>
    sys.exit(main())
  File "/home/anandhu/.local/lib/python3.10/site-packages/mlc/main.py", line 1374, in main
    res = method(run_args)
  File "/home/anandhu/.local/lib/python3.10/site-packages/mlc/main.py", line 1194, in run
    return self.call_script_module_function("run", run_args)
  File "/home/anandhu/.local/lib/python3.10/site-packages/mlc/main.py", line 1173, in call_script_module_function
    automation_instance = module.ScriptAutomation(self, module_path)
  File "/home/anandhu/MLC/repos/anandhu-eng@mlperf-automations/automation/script/module.py", line 44, in __init__
    self.cache_action = CacheAction(self.action_object.parent)
AttributeError: 'ScriptAction' object has no attribute 'parent'

I think the error arose with this commit.

Also would it be beneficial if we add GH actions with some existing caches in the environment.

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