Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ctcdecode/src/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ std::pair<torch::Tensor, torch::Tensor> beam_decode_with_given_state(at::Tensor
}
}

torch::Tensor output_tokens_tensor = torch::randint(1, {batch_results.size(), max_result_size, max_output_tokens_size});
torch::Tensor output_timesteps_tensor = torch::randint(1, {batch_results.size(), max_result_size, max_output_tokens_size});
torch::Tensor output_tokens_tensor = torch::randint(1, {static_cast<long long>(batch_results.size()), max_result_size, max_output_tokens_size});
torch::Tensor output_timesteps_tensor = torch::randint(1, {static_cast<long long>(batch_results.size()), max_result_size, max_output_tokens_size});


auto scores_accessor = th_scores.accessor<float, 2>();
Expand Down
4 changes: 3 additions & 1 deletion ctcdecode/src/decoder_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include <algorithm>
#include <cmath>
#include <limits>
#include <bits/stdc++.h>
#include <vector>
#include <unordered_map>

using namespace std;


Expand Down