mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-11 06:15:56 +03:00
Fix windows build error
This commit is contained in:
parent
b7650a0f32
commit
c0a0f4add9
@ -82,7 +82,7 @@ void ConfigParser::addAliases(cli::CLIWrapper& cli) {
|
||||
config["mini-batch"] = 1000;
|
||||
config["maxi-batch"] = 1000;
|
||||
config["workspace"] = 9500;
|
||||
config["optimizer-params"] = std::vector<float>({0.9, 0.98, 1e-09});
|
||||
config["optimizer-params"] = std::vector<float>({0.9f, 0.98f, 1e-09f});
|
||||
|
||||
// Validation specific options
|
||||
config["beam-size"] = 8;
|
||||
@ -120,7 +120,7 @@ void ConfigParser::addAliases(cli::CLIWrapper& cli) {
|
||||
config["mini-batch"] = 1000;
|
||||
config["maxi-batch"] = 1000;
|
||||
config["workspace"] = 13000;
|
||||
config["optimizer-params"] = std::vector<float>({0.9, 0.998, 1e-09});
|
||||
config["optimizer-params"] = std::vector<float>({0.9f, 0.998f, 1e-09f});
|
||||
|
||||
// Validation specific options
|
||||
config["beam-size"] = 8;
|
||||
|
@ -8,12 +8,20 @@
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wsuggest-override"
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4101)
|
||||
#endif
|
||||
#include "3rd_party/zstr/zstr.hpp"
|
||||
#include <boost/iostreams/device/file_descriptor.hpp>
|
||||
#include <boost/iostreams/stream_buffer.hpp>
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
@ -930,6 +930,7 @@
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
</ClInclude>
|
||||
<ClCompile Include="..\src\common\aliases.cpp" />
|
||||
<ClCompile Include="..\src\common\binary.cpp" />
|
||||
<ClCompile Include="..\src\common\cli_helper.cpp" />
|
||||
<ClCompile Include="..\src\common\cli_wrapper.cpp" />
|
||||
|
@ -709,6 +709,9 @@
|
||||
<ClCompile Include="..\src\3rd_party\fbgemm\third_party\cpuinfo\deps\clog\src\clog.c">
|
||||
<Filter>3rd_party\fbgemm\third_party\cpuinfo\deps\clog\src</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\src\common\aliases.cpp">
|
||||
<Filter>common</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src\marian.h" />
|
||||
|
Loading…
Reference in New Issue
Block a user