Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45eba93

Browse filesBrowse files
authored
build : use std::make_tuple() for compatibility with older GCC versions (#3488)
1 parent acec9ea commit 45eba93
Copy full SHA for 45eba93

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎common/common.cpp

Copy file name to clipboardExpand all lines: common/common.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
361361
invalid_param = true;
362362
break;
363363
}
364-
params.lora_adapter.push_back({argv[i], 1.0f});
364+
params.lora_adapter.push_back(std::make_tuple(argv[i], 1.0f));
365365
params.use_mmap = false;
366366
} else if (arg == "--lora-scaled") {
367367
if (++i >= argc) {
@@ -373,7 +373,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
373373
invalid_param = true;
374374
break;
375375
}
376-
params.lora_adapter.push_back({lora_adapter, std::stof(argv[i])});
376+
params.lora_adapter.push_back(std::make_tuple(lora_adapter, std::stof(argv[i])));
377377
params.use_mmap = false;
378378
} else if (arg == "--lora-base") {
379379
if (++i >= argc) {

‎examples/server/server.cpp

Copy file name to clipboardExpand all lines: examples/server/server.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ static void server_params_parse(int argc, char **argv, server_params &sparams,
10151015
invalid_param = true;
10161016
break;
10171017
}
1018-
params.lora_adapter.push_back({argv[i], 1.0f});
1018+
params.lora_adapter.push_back(std::make_tuple(argv[i], 1.0f));
10191019
params.use_mmap = false;
10201020
}
10211021
else if (arg == "--lora-scaled")
@@ -1031,7 +1031,7 @@ static void server_params_parse(int argc, char **argv, server_params &sparams,
10311031
invalid_param = true;
10321032
break;
10331033
}
1034-
params.lora_adapter.push_back({lora_adapter, std::stof(argv[i])});
1034+
params.lora_adapter.push_back(std::make_tuple(lora_adapter, std::stof(argv[i])));
10351035
params.use_mmap = false;
10361036
}
10371037
else if (arg == "--lora-base")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.