Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix max step #447

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion lightseq/inference/model/decoder.cc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ std::string Decoder<OpType_>::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 "";
Expand Down
4 changes: 2 additions & 2 deletions lightseq/inference/server/model_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down