Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Added im2col batch rule and enabled vmap for nn.functional.unfold op #262

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

vfdev-5
Copy link
Contributor

@vfdev-5 vfdev-5 commented Nov 14, 2021

Description:

  • Added im2col batch rule and enabled vmap for nn.functional.unfold op
  • Updated tests

Using EXISTING_BDIM macro to put bdim into 0 as im2col expects dim=0 to be the batch dim

Related to #240

Additionally moved OP_DECOMPOSE(nll_loss*) into alphabetical order.

Description:
- Added im2col batch rule and enabled vmap for nn.functional.unfold op
- Updated tests

Using EXISTING_BDIM macro to put bdim into 0 as im2col expects dim=0 to be batch dim

Related to pytorch#240
@Chillee Chillee merged commit 545fdc4 into pytorch:main Nov 15, 2021
@vfdev-5 vfdev-5 deleted the add-unfold-br branch November 15, 2021 06:58
zou3519 pushed a commit to zou3519/pytorch that referenced this pull request Jul 20, 2022
…l.unfold op (pytorch/functorch#262)

Description:
- Added im2col batch rule and enabled vmap for nn.functional.unfold op
- Updated tests

Using EXISTING_BDIM macro to put bdim into 0 as im2col expects dim=0 to be batch dim

Related to pytorch/functorch#240
bigfootjon pushed a commit to pytorch/pytorch that referenced this pull request Jul 21, 2022
…l.unfold op (pytorch/functorch#262)

Description:
- Added im2col batch rule and enabled vmap for nn.functional.unfold op
- Updated tests

Using EXISTING_BDIM macro to put bdim into 0 as im2col expects dim=0 to be batch dim

Related to pytorch/functorch#240
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants