Closed yataoz closed 3 years ago
Sorry for the late reply — yes, the texture op propagates gradients to the input uv
tensor as you would expect. If using sampling mode 'nearest'
, these gradients will be zero because the sampling result is piecewise constant, but all other sampling modes involve interpolation between texels and therefore produce gradients for the texture coordinates.
Hi,
I have a neural net that outputs a uv map, which will be used as input to the texture sampling op. I wonder if the texture op passes any gradients to the uv input during training? Thanks.