mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
Fix python bindings
This commit is contained in:
parent
4fcab606f6
commit
585c3f26f0
@ -11,11 +11,11 @@
|
||||
|
||||
using namespace marian;
|
||||
|
||||
Ptr<TranslateLoopMultiGPU<BeamSearch>> task;
|
||||
Ptr<TranslateServiceMultiGPU<BeamSearch>> task;
|
||||
|
||||
void init(const std::string& argopts) {
|
||||
auto options = New<Config>(argopts, ConfigMode::translating);
|
||||
task = New<TranslateLoopMultiGPU<BeamSearch>>(options);
|
||||
task = New<TranslateServiceMultiGPU<BeamSearch>>(options);
|
||||
LOG(info)->info("Translator initialized");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user