Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skottmckay committed Aug 7, 2019
1 parent 20335d1 commit 25259f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/core/providers/cpu/tensor/concat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ Status Concat::Compute(OpKernelContext* ctx) const {
for (size_t idx_copy = 0, end = input_size / input_axis_pitch; idx_copy < end; ++idx_copy) {
if (is_string_type) {
size_t out = initial_output_offset + cur_out_offset;
for (int idxItem = 0; idxItem < input_axis_pitch; ++idxItem) {
reinterpret_cast<std::string*>(output)[out + idxItem] =
reinterpret_cast<const std::string*>(input)[cur_in_offset + idxItem];
for (int idx_item = 0; idx_item < input_axis_pitch; ++idx_item) {
reinterpret_cast<std::string*>(output)[out + idx_item] =
reinterpret_cast<const std::string*>(input)[cur_in_offset + idx_item];
}
} else {
memcpy(
Expand Down

0 comments on commit 25259f8

Please sign in to comment.