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
Showing
想要评论请 注册 或 登录