Skip to content

Add default device selection and handle missing torch#29

Open
ShinDongWoon wants to merge 1 commit intomainfrom
codex/add-error-handling-for-torch-import
Open

Add default device selection and handle missing torch#29
ShinDongWoon wants to merge 1 commit intomainfrom
codex/add-error-handling-for-torch-import

Conversation

@ShinDongWoon
Copy link
Owner

Summary

  • Handle optional torch import in device utility and add default/EOF fallback logic
  • Allow train and predict scripts to accept a default device without interactive prompts

Testing

  • pytest -q
  • python -m py_compile LGHackerton/utils/device.py LGHackerton/train.py LGHackerton/predict.py
  • python - <<'PY' from LGHackerton.utils.device import select_device print(select_device('cpu')) PY

https://chatgpt.com/codex/tasks/task_e_68a0791600948328a5b41aaa60e55c39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant