From 7acc695cd8d56a0f7c3392ce2567bbcea6de8e60 Mon Sep 17 00:00:00 2001 From: Colin Sinclair Date: Wed, 4 Jan 2023 18:21:13 -0800 Subject: [PATCH 1/2] 1026 --- lightseq/inference/model/decoder.cc.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightseq/inference/model/decoder.cc.cu b/lightseq/inference/model/decoder.cc.cu index 07c1f9a3..a24127f3 100644 --- a/lightseq/inference/model/decoder.cc.cu +++ b/lightseq/inference/model/decoder.cc.cu @@ -255,7 +255,7 @@ std::string Decoder::check() { if (_tw._multilg_type != 0 && _p_d_lang_id == nullptr) { return "lang id should not be null when multilg"; } - if (_tw._max_step > 1024) { + if (_tw._max_step > 1026) { return "max_step should not greater than 1024"; } return ""; From 5a404dd246e0e204758f33b78b9510bf937cb24a Mon Sep 17 00:00:00 2001 From: Colin Sinclair Date: Wed, 4 Jan 2023 18:52:40 -0800 Subject: [PATCH 2/2] std string --- lightseq/inference/server/model_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightseq/inference/server/model_config.h b/lightseq/inference/server/model_config.h index ded5bf55..36ba2810 100644 --- a/lightseq/inference/server/model_config.h +++ b/lightseq/inference/server/model_config.h @@ -40,8 +40,8 @@ using CorrelationID = uint64_t; using DimsList = ::google::protobuf::RepeatedField<::google::protobuf::int64>; /// The type for the metric_tags map. -using MetricTagsMap = ::google::protobuf::Map<::google::protobuf::string, - ::google::protobuf::string>; +using MetricTagsMap = ::google::protobuf::Map<::std::string, + ::std::string>; /// The type from platform name to the backend configuration for that /// platform.