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

Feat/support to set device for batch dataset #147

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

L-M-Sherlock
Copy link
Member

Changes

Added device support to the BatchDataset class to allow tensor operations on specified devices (CPU/GPU).

Technical Details

  • Added new device parameter to BatchDataset constructor (defaults to "cpu")
  • Moved batch tensors to the specified device, including:
    • Sequence data (sequences_truncated)
    • Interval data (t_train)
    • Label data (y_train)
    • Sequence length data (seq_lens)

@L-M-Sherlock L-M-Sherlock added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit ae7575c Nov 1, 2024
4 checks passed
@L-M-Sherlock L-M-Sherlock deleted the Feat/support-to-set-device-for-BatchDataset branch November 1, 2024 06:07
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