Skip to content

ShapeTracker note fixes#30

Open
jshiwamV wants to merge 1 commit into
mesozoic-egg:mainfrom
jshiwamV:shape-tracker-nits
Open

ShapeTracker note fixes#30
jshiwamV wants to merge 1 commit into
mesozoic-egg:mainfrom
jshiwamV:shape-tracker-nits

Conversation

@jshiwamV

@jshiwamV jshiwamV commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

will probably close this pr if i think its not needed

EDIT: the change is valid, that's how View.permute() comutes the transpose of shape in the sample example mentioned in this blog

a = View.create(shape=(3, 2), strides=(2,1))
print(a)
# Transpose it
a = a.permute((1, 0))
print(a.shape) # (2, 3)
print(a.strides) # (1, 2)

a = a.reshape((3, 2))
print(a)

@Bchass

Bchass commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

This can be closed: #32

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