From f9a2d0995d717edcdc0d7086902216038313eb19 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 12 Apr 2023 10:32:14 -0700 Subject: [PATCH] Fix Windows compilation error PiperOrigin-RevId: 523739720 --- .../cc/text/language_detector/custom_ops/ngram_hash_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/tasks/cc/text/language_detector/custom_ops/ngram_hash_test.cc b/mediapipe/tasks/cc/text/language_detector/custom_ops/ngram_hash_test.cc index 06af5f971..844ae95e7 100644 --- a/mediapipe/tasks/cc/text/language_detector/custom_ops/ngram_hash_test.cc +++ b/mediapipe/tasks/cc/text/language_detector/custom_ops/ngram_hash_test.cc @@ -120,7 +120,7 @@ TEST(NGramHashTest, ReturnsExpectedValueWhenInputIsSane) { // A hash function that maps the given string to an index in the embedding // table denoted by `vocab_idx`. - auto hash = [vocab_sizes](std::string str, const int vocab_idx) { + auto hash = [vocab_sizes, kSeed](std::string str, const int vocab_idx) { const auto hash_value = MurmurHash64WithSeed(str.c_str(), str.size(), kSeed); return static_cast((hash_value % vocab_sizes[vocab_idx]) + 1);