Skip to content

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Dec 3, 2021

Switch from TFA resampler op to TFA interpolate_bilinear.

Maintaining the custom resampler op is a maintenance headache that requires aligning the versions of TFA and TFG for the opensource releases (e.g., #650). The interpolate_bilinear function is a pure-TF op that is likely somewhat slower, but has no maintenance problems. Using pure-TF ops also allows using higher-order derivatives and tf.ForwardAccumulator with the transform.sample function.

The implemented border behavior of interpolate_bilinear is DUPLICATE, whereas resampler is ZERO, so the sample function changes slightly to pad the image with zeros when BorderType.ZERO is requested.

@google-cla google-cla bot added the cla: yes label Dec 3, 2021
@copybara-service copybara-service bot force-pushed the test_413886339 branch 3 times, most recently from 6477be0 to 9abd6eb Compare December 3, 2021 18:30
@copybara-service copybara-service bot closed this Dec 3, 2021
@copybara-service copybara-service bot deleted the test_413886339 branch December 3, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants