Closed skeydan closed 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:
left, top,right and bottom
left, right, top and bottom
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)
The documentation indicates a different order from how the code proceeds -
left, top,right and bottom
vsleft, right, top and bottom
. To check:(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)