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

Add additional tests for TensorDataset #187

Merged
merged 2 commits into from
Oct 27, 2024
Merged

Add additional tests for TensorDataset #187

merged 2 commits into from
Oct 27, 2024

Conversation

stes
Copy link
Member

@stes stes commented Oct 27, 2024

PRs #166 and #180 did some changes to the TensorDataset class without adding tests. This PR adds such tests to cover the basic functionality (type checking, init of the dataset, accessing the data and reproducing the issue described in #174 ).

This brought two minor errors to light which are also fixed in the PR (typo in self._to_tensor(discrete, check_dtype="integer"), wrong docstring, exception handling.

@stes stes requested a review from MMathisLab October 27, 2024 13:43
@stes stes self-assigned this Oct 27, 2024
@cla-bot cla-bot bot added the CLA signed label Oct 27, 2024
@stes
Copy link
Member Author

stes commented Oct 27, 2024

Ok, funny edge case, good we are running windows tests
image

int32 vs int64 defaults are handled differently on windows, will add that explicitly then.

@stes stes merged commit e652b9a into main Oct 27, 2024
11 checks passed
@stes stes deleted the stes/add-dataset-tests branch October 27, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants