Skip to content

Commit

Permalink
[Windows] fix printf type incompatibility between type specifiers (#2569
Browse files Browse the repository at this point in the history
)
  • Loading branch information
apwojcik authored Dec 23, 2023
1 parent dce3146 commit c06434a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions driver/rnn_seq_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,9 @@ std::vector<int> RNNSeqDriver<Tgpu, Tref>::GetSeqLengthsFromCmdLine()
if(seq_it != data_seq_lens.end())
{
auto padding_val = (seq_it != data_seq_lens.begin()) ? *(seq_it - 1) : seq_len_max;
printf("sampl_lens size == %lu is shmaller than time batch_size == %d, padding the rest "
"of data with %d\n",
static_cast<size_t>(std::distance(data_seq_lens.begin(), seq_it)),
batch_size,
padding_val);
std::cout << "sampl_lens size == " << std::distance(data_seq_lens.begin(), seq_it)
<< " is smaller than time batch_size == " << batch_size
<< ", padding the rest of data with " << padding_val << "\n";

for(; seq_it != data_seq_lens.end(); seq_it++)
*seq_it = padding_val;
Expand Down

0 comments on commit c06434a

Please sign in to comment.