mirror of
https://github.com/marian-nmt/marian.git
synced 2024-12-11 09:54:22 +03:00
const Create
This commit is contained in:
parent
cf97f949c4
commit
bc06487734
@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
LoaderPtr LoaderFactory::Create(
|
||||
God &god,
|
||||
const God &god,
|
||||
const std::string& name,
|
||||
const YAML::Node& config,
|
||||
const std::string& mode) {
|
||||
@ -42,7 +42,7 @@ LoaderPtr LoaderFactory::Create(
|
||||
|
||||
#ifdef CUDA
|
||||
Loader *LoaderFactory::CreateGPU(
|
||||
God &god,
|
||||
const God &god,
|
||||
const std::string& name,
|
||||
const YAML::Node& config) {
|
||||
UTIL_THROW_IF2(!config["type"],
|
||||
@ -69,7 +69,7 @@ Loader *LoaderFactory::CreateGPU(
|
||||
|
||||
|
||||
Loader *LoaderFactory::CreateCPU(
|
||||
God &god,
|
||||
const God &god,
|
||||
const std::string& name,
|
||||
const YAML::Node& config) {
|
||||
UTIL_THROW_IF2(!config["type"],
|
||||
|
@ -17,17 +17,17 @@ do { \
|
||||
|
||||
class LoaderFactory {
|
||||
public:
|
||||
static LoaderPtr Create(God &god,
|
||||
static LoaderPtr Create(const God &god,
|
||||
const std::string& name,
|
||||
const YAML::Node& config,
|
||||
const std::string& mode);
|
||||
|
||||
protected:
|
||||
|
||||
static Loader *CreateCPU(God &god, const std::string& name,
|
||||
static Loader *CreateCPU(const God &god, const std::string& name,
|
||||
const YAML::Node& config);
|
||||
|
||||
static Loader *CreateGPU(God &god, const std::string& name,
|
||||
static Loader *CreateGPU(const God &god, const std::string& name,
|
||||
const YAML::Node& config);
|
||||
|
||||
#ifdef CUDA
|
||||
|
Loading…
Reference in New Issue
Block a user