Skip to content

Commit

Permalink
Fix error message. (LeelaChessZero#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooskagh authored Aug 24, 2024
1 parent 3b48a79 commit 0c65aa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lc0ctl/leela2onnx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ bool ProcessParameters(OptionsParser* options) {
options->Add<IntOption>(kOnnxOpsetId, 7, 18) = 17;
options->Add<IntOption>(kHloBatchSizeId, 1, 2048) = 333;
options->Add<ChoiceOption>(
kOnnxDataTypeId,
std::vector<std::string>{"f32", "f16", "bf16"}) = "f32";
kOnnxDataTypeId, std::vector<std::string>{"f32", "f16", "bf16"}) = "f32";
options->Add<BoolOption>(kHloAllowPartialResultId);
options->Add<BoolOption>(kRelaxOpTypes) = false;
options->HideOption(kOnnxBatchSizeId);
Expand All @@ -118,7 +117,7 @@ bool ProcessParameters(OptionsParser* options) {
!dict.OwnExists<std::string>(kHloTextOutputFilenameId) &&
!dict.OwnExists<std::string>(kHloProtoOutputFilenameId)) {
throw Exception(
"At least one of --output, --hlo-output or --hlo-proto-output "
"At least one of --output, --hlo-text-output or --hlo-proto-output "
"must be specified.");
}
return true;
Expand Down

0 comments on commit 0c65aa6

Please sign in to comment.