Commit 03e72140 authored by Kay Zhu's avatar Kay Zhu Committed by TensorFlower Gardener
Browse files

[TF2XLA] In Resampler correctly handle out of boundary samples by returning 0

for the backward pass.

Note out of boundary here means outside of (-1, image_size) index, instead of
(0, image_size -1). As a result the images will be padded with 0 before
gathering / scattering operation is performed, then sliced back to obtain the
actual results.

PiperOrigin-RevId: 225278400
parent 2885c4bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment