aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python
diff options
context:
space:
mode:
authorGravatar David Majnemer <majnemer@google.com>2018-10-08 15:00:36 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-08 15:04:52 -0700
commit220c0f90af05ed1ca86831258888cc80757654fd (patch)
tree864eebf69d5f500150fe0df9bcde97320588a806 /tensorflow/python
parentb3bd7b378d00190fef831092836a5df62e39e7ed (diff)
[XLA] Simplify loop nesting in HandleConvolution
The calculation of a spatial coordinate in the kernel and activations is not dependent on which part of the contracted dimension (input feature) we are in. Rather than nesting the loops, the loops can be siblings: - One loop over spatial dimensions - One loop over the input feature group This reduces the nesting depth which makes the code a little more readable and might be slightly faster due work invariant in the spatial loop getting hoisted out. PiperOrigin-RevId: 216255839
Diffstat (limited to 'tensorflow/python')
0 files changed, 0 insertions, 0 deletions