aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/llvm
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-03-14 08:39:17 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-14 09:48:41 -0700
commit69761c0457f4b13b4ea2c8183a17c90ce3194213 (patch)
tree996ce16180c2b03f7de22284d1b736bbdbfbcbb4 /third_party/llvm
parent1c1d6f54574c14ff47257f0e855fbd86e678c828 (diff)
Improve performance of ResizeBicubic:
- for each x value, cache the indexes and the 'advance 'value. - access input and output through direct pointer access instead of through eigen_tensor(b,y,x,c). - special-case the 3 channel case. - switch channel/width loops in the general case so that a single float[4] can be used for the cache. After caching 'advance' value, the values used during iteration could be converted to plain float[4] instead of using the CachedInterpolation object. Removed the special cases in CachedInterpolation::Advance; the special cases for speed are not needed when it's only called once per image. Added more test cases and benchmark cases. Change: 150077397
Diffstat (limited to 'third_party/llvm')
0 files changed, 0 insertions, 0 deletions