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

Explicitly allow openArray in Tensor [], []=, fix the CI #666

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

Vindaar
Copy link
Collaborator

@Vindaar Vindaar commented Sep 20, 2024

When adding the more type safe approach to [], []= in #653 I also forgot to add openArray to the allowed types.

This should also fix the CI by compiling with -d:ssl to download the MNIST dataset.

edit:
Also fixes a regression that appeared as a result of PR #659. See the added test case and commits.

This was simply an oversight obviously
By not resetting the offset here, operating on a Tensor view without
cloning could cause undefined behavior, because we would be accessing
elements outside the tensor buffer.
@Vindaar
Copy link
Collaborator Author

Vindaar commented Sep 20, 2024

Merging, because OSX CI is still borked.

@Vindaar Vindaar merged commit 5f8ef9d into master Sep 20, 2024
3 of 6 checks passed
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