MNN/source/core/RuntimeFactory.hpp

28 lines
537 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
2020-11-05 16:41:56 +08:00
// RuntimeFactory.hpp
2019-04-17 10:49:11 +08:00
// MNN
//
// Created by MNN on 2018/07/30.
// Copyright © 2018, Alibaba Group Holding Limited
//
2020-11-05 16:41:56 +08:00
#ifndef RuntimeFactory_hpp
#define RuntimeFactory_hpp
2019-04-17 10:49:11 +08:00
2019-12-27 22:16:57 +08:00
#include "core/Backend.hpp"
2019-04-17 10:49:11 +08:00
namespace MNN {
2020-11-05 16:41:56 +08:00
/** Runtime factory */
class RuntimeFactory {
2019-04-17 10:49:11 +08:00
public:
/**
* @brief create backend with given info.
* @param info backend info.
* @return created backend or NULL if failed.
*/
2020-11-05 16:41:56 +08:00
static Runtime* create(const Backend::Info& info);
2019-04-17 10:49:11 +08:00
};
} // namespace MNN
2020-11-05 16:41:56 +08:00
#endif /* RuntimeFactory_hpp */