Skip to content

Fix a batch dim issue in resize_with_pad_torch#876

Open
Haichao-Zhang wants to merge 1 commit intoPhysical-Intelligence:mainfrom
Haichao-Zhang:PR_fix_batch_dim
Open

Fix a batch dim issue in resize_with_pad_torch#876
Haichao-Zhang wants to merge 1 commit intoPhysical-Intelligence:mainfrom
Haichao-Zhang:PR_fix_batch_dim

Conversation

@Haichao-Zhang
Copy link

@Haichao-Zhang Haichao-Zhang commented Feb 6, 2026

The current way of removing the batch dim in resize_with_pad_torch could cause issue when the batch size is actually 1.
This PR fixes this issue and preserves the tensor shape from input to output and only removes the batch dim when it was added earlier.

@jimmyt857 jimmyt857 removed their request for review February 6, 2026 16:24
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