delete unused local typedef VK to fix pipeline error (#14322)

fix the error
"/onnxruntime_src/onnxruntime/core/providers/cuda/test/greedy_search_top_one.cc:34:9:
error: typedef ‘using VK = struct std::pair<float, int>’ locally defined
but not used [-Werror=unused-local-typedefs]34 | using VK =
std::pair<float, int32_t>"
This commit is contained in:
zhijiang 2023-01-18 04:27:00 +08:00 committed by GitHub
parent 19b4d9d41e
commit caa5900508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,6 @@ void ComputeTop1Reference(const std::vector<float>& values,
std::vector<int32_t>& top_k_tokens,
int32_t batch_size,
int32_t vocab_size) {
using VK = std::pair<float, int32_t>;
for (int32_t b = 0; b < batch_size; b++) {
int32_t base_idx = b * vocab_size;