Skip to content

Shape Agnostic copyChunk2Array#704

Merged
TheJeran merged 1 commit into
mainfrom
jp/copyChunk2Array
Jul 22, 2026
Merged

Shape Agnostic copyChunk2Array#704
TheJeran merged 1 commit into
mainfrom
jp/copyChunk2Array

Conversation

@TheJeran

@TheJeran TheJeran commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

GetCurrentArray uses copyChunk2Array which was originally vibe coded for 3D arrays. Since this is one of the few functions I have no idea what it's doing I went back to Claude and it suggested making it shape agnostic. I don't know how it works but it works. However, it requires the shape and strides to be the same and since strides is 2D in the chunk that is passed, I added a pruning map to the chunk saver to remove dims with a length of 1 from the shape.

I feel like the .filter() could break logic at some point. But we will change that if/when it comes and I understand what the problem is.

closes #703

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@TheJeran
TheJeran merged commit 23cf05a into main Jul 22, 2026
6 checks passed
@TheJeran
TheJeran deleted the jp/copyChunk2Array branch July 22, 2026 13:11
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.

GetCurrentArray doesn't work on 2D data

1 participant