diff options
author | David Majnemer <majnemer@google.com> | 2018-10-08 15:00:36 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-08 15:04:52 -0700 |
commit | 220c0f90af05ed1ca86831258888cc80757654fd (patch) | |
tree | 864eebf69d5f500150fe0df9bcde97320588a806 /tensorflow/python | |
parent | b3bd7b378d00190fef831092836a5df62e39e7ed (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