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

transform_rotate changes shape of input #101

Open
sebffischer opened this issue Oct 25, 2023 · 0 comments
Open

transform_rotate changes shape of input #101

sebffischer opened this issue Oct 25, 2023 · 0 comments

Comments

@sebffischer
Copy link
Contributor

Maybe I don't fully understand the transform_rotate() function, but below it yields a (for me) unexpected output shape.

library(torchvision)
library(torch)
#> Warning: package 'torch' was built under R version 4.3.1

x = torch_randn(1, 3, 200, 150)

transform_rotate(x, angle = 0, expand = TRUE)$shape
#> [1]   1   3 150 150
transform_rotate(x, angle = 0, expand = FALSE)$shape
#> [1]   1   3 150 150

Created on 2023-10-25 with reprex v2.0.2

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

No branches or pull requests

1 participant