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 fast path for Resize when scale is 1 for all dimensions #290

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

robertknight
Copy link
Owner

When the scale is 1, the operator can just copy its inputs. Unlike the general case, this does support tensors that are not 4D, since this is easy to implement.

The initial use case is an identity resize of a 3D tensor in the Segment Anything image encoder.

When the scale is 1, the operator can just copy its inputs. Unlike the general
case, this does support tensors that are not 4D, since this is easy to
implement.

The initial use case is an identity resize of a 3D tensor in the Segment
Anything image encoder.
@robertknight robertknight merged commit 035aad9 into main Jul 24, 2024
2 checks passed
@robertknight robertknight deleted the resize-fast-path branch July 24, 2024 22:15
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