Skip to content

Commit

Permalink
Fix a bug to increment stride tile correctly (#503)
Browse files Browse the repository at this point in the history
* Fix a bug to increment stride tile correctly

* Update regular_tile_access_iterator_tensor_op.h

Co-authored-by: peisun1115 <[email protected]>
Co-authored-by: Haicheng Wu <[email protected]>
  • Loading branch information
3 people authored Jun 4, 2022
1 parent 0abaac8 commit a29dfb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ class RegularTileAccessIterator<Shape_, Element_,
add_pointer_offset(coord.contiguous() * sections_per_stage_ * stride_ *
ThreadMap::kElementsPerAccess / sections_ +
coord.strided() * Shape::kStrided * stride_ *
Layout::kElementsPerAccess);
Layout::kElementsPerAccess / Layout::kFactor);
}
};

Expand Down

0 comments on commit a29dfb1

Please sign in to comment.