Remove redundant offset def and init in shared_load_iterator.h (#456)

Signed-off-by: Fujun Han <fujun.han@iluvatar.ai>
This commit is contained in:
Fujun Han 2022-04-25 04:31:00 +08:00 committed by GitHub
parent be4578d517
commit dd77fadc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,9 +144,6 @@ public:
byte_pointer_ +=
thread_offset.row() * stride_ +
thread_offset.column() * sizeof(AccessType) / kElementsPerAccess;
int byte_offset = thread_offset.row() * stride_ +
thread_offset.column() * sizeof(AccessType) / kElementsPerAccess;
}
/// Adds a pointer offset in units of Element