| 225 | } |
| 226 | |
| 227 | bool AccessWindowRectangle::update_padding_if_needed(const Window &window) |
| 228 | { |
| 229 | // Only update the padding if the tensor allows it |
| 230 | if (_info == nullptr || !_info->is_resizable()) |
| 231 | { |
| 232 | return false; |
| 233 | } |
| 234 | // Update strides in tensor info |
| 235 | return _info->extend_padding(get_needed_padding(window)); |
| 236 | } |
| 237 | |
| 238 | PaddingSize AccessWindowRectangle::get_needed_padding(const Window &window) const |
| 239 | { |
no test coverage detected