mlverse / torchvision

R interface to torchvision
https://torchvision.mlverse.org
Other
62 stars 15 forks source link

fix documentation #28

Closed skeydan closed 3 years ago

skeydan commented 3 years ago

The documentation indicates a different order from how the code proceeds - left, top,right and bottom vs left, right, top and bottom. To check:

x <- torch_randn(3, 10, 10)
o <- transform_pad(x, c(2,2,1,1))
o$size()
# [1]  3 12 14

(This is wrong in the Python documentation as well :-) - but the underlying https://pytorch.org/docs/stable/nn.functional.html#vision-functions has it correct)