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

Insert transposes between 3D and 4D tensors #1

Closed
wants to merge 1 commit into from

Conversation

Erik-Lundell
Copy link
Owner

@Erik-Lundell Erik-Lundell commented Oct 17, 2024

Stack from ghstack (oldest at bottom):

Tensors of rank < 4 always have a contiguous dim_order while 4D tensors
may have (0, 2, 3, 1) as dim_order. This patch inserts transposes
between 4D tensors and other tensors, more precisely it targets
squeeze and unsqueeze ops. The transposes will act as bridges between
different dim_orders to ensure that activations are passed forward in
the correct format.

Vela version is bumped to include transpose implementation.
This version also includes implementation of transpose, therefore
xfails in test_expand and test_repeat are disabled.

Signed-off-by: Oscar Andersson [email protected]
Change-Id: If56344b2153441f113e4e87e95d41acad5df9220

[ghstack-poisoned]
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