Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptAction object has no attribute parent #178

Closed
anandhu-eng opened this issue Feb 3, 2025 · 1 comment
Closed

ScriptAction object has no attribute parent #178

anandhu-eng opened this issue Feb 3, 2025 · 1 comment

Comments

@anandhu-eng
Copy link
Contributor

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.

@anandhu-eng
Copy link
Contributor Author

Issue does not persist with the latest version of mlcflow(0.1.21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant