Implementation of a row access pattern. */
| 243 | |
| 244 | /** Implementation of a row access pattern. */ |
| 245 | class AccessWindowHorizontal : public AccessWindowRectangle |
| 246 | { |
| 247 | public: |
| 248 | /** Constructor for a row access pattern. |
| 249 | * |
| 250 | * @note Width has to be non-negative. |
| 251 | * |
| 252 | * @param[in,out] info Tensor info of the accessed kernel. |
| 253 | * @param[in] x Offset of the access in X direction. |
| 254 | * @param[in] width Number of elements that are accessed in X direction. |
| 255 | * @param[in] scale_x Ratio along the X direction between the window used by the execute_window_loop and the rectangular access pattern defined |
| 256 | */ |
| 257 | AccessWindowHorizontal(ITensorInfo *info, int x, int width, float scale_x = 1.f) |
| 258 | : AccessWindowRectangle(info, x, 0, width, 1, scale_x, 1.f) |
| 259 | { |
| 260 | ARM_COMPUTE_ERROR_ON(width < 0); |
| 261 | ARM_COMPUTE_ERROR_ON(scale_x < 0); |
| 262 | } |
| 263 | }; |
| 264 | } // namespace arm_compute |
| 265 | #endif // ACL_ARM_COMPUTE_CORE_IACCESSWINDOW_H |