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 Tensor type #20

Merged
merged 1 commit into from
Jan 4, 2025
Merged

Add Tensor type #20

merged 1 commit into from
Jan 4, 2025

Conversation

seanmcl
Copy link
Collaborator

@seanmcl seanmcl commented Jan 2, 2025

Multi-dimensional arrays

@seanmcl seanmcl force-pushed the sm/06-tensor branch 2 times, most recently from 4dab8e1 to b540b3d Compare January 2, 2025 22:46
TensorLib/Tensor.lean Outdated Show resolved Hide resolved
Clearly a simple list of numbers for strides can't jump around the original list
to capture that pattern. My guess is that there is we can figure out if we need
a copy by looking at startPosition, shape, and strides.
-/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great documentation.

@seanmcl seanmcl force-pushed the sm/05-slice branch 2 times, most recently from cc3656d to c3c8b09 Compare January 3, 2025 23:46
Base automatically changed from sm/05-slice to main January 4, 2025 00:07
Multi-dimensional arrays
@seanmcl seanmcl merged commit 5b914b5 into main Jan 4, 2025
1 check passed
@seanmcl seanmcl deleted the sm/06-tensor branch January 4, 2025 00:26
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.

2 participants