Skip to content

Updated dataset.py to work with torch 2.3.1#1277

Open
darrenchang wants to merge 1 commit intoJaidedAI:masterfrom
darrenchang:master
Open

Updated dataset.py to work with torch 2.3.1#1277
darrenchang wants to merge 1 commit intoJaidedAI:masterfrom
darrenchang:master

Conversation

@darrenchang
Copy link

Changes

  1. Updated dataset.py to work with torch 2.3.1
    _accumulate is no longer implemented in torch 2.3.1, therefore dataset.py must have it's own def _accumulate.
    This method is taken from torch 2.2.0 and implemented into dataset.py.
    _accumulate method: https://github.com/pytorch/pytorch/blob/8ac9b20d4b090c213799e81acf48a55ea8d437d6/torch/_utils.py#L497

  2. Implemented trainer.py for those who don't want to use jupiter notebook

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

Successfully merging this pull request may close these issues.

1 participant