We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b8a008 commit 1a1dc5cCopy full SHA for 1a1dc5c
ext/NNlibCUDA/src/upsample.jl
@@ -42,6 +42,8 @@
42
43
# Forward and backward pass have been tested to produce the same output
44
# as pytorch with align_corners=True - it works modulo bit noise.
45
+# pytorch's default is align_corners=False, because otherwise the gradients depend on the
46
+# image size, which should be avoided -> this should be considered here as well
47
48
@inline function compute_source_index(ratio::T, dst_index, align_corners) where T
49
if align_corners
0 commit comments