18 #include "scanner/api/kernel.h" 19 #include "scanner/engine/kernel_factory.h" 21 #include "scanner/util/common.h" 30 void add_kernel(
const std::string& name,
KernelFactory* factory);
32 bool has_kernel(
const std::string& name, DeviceType device_type);
34 KernelFactory* get_kernel(
const std::string& name, DeviceType device_type);
37 static std::string factory_name(
const std::string& name, DeviceType type);
40 std::map<std::string, KernelFactory*> factories_;
Interface for constructing ops at runtime.
Definition: kernel_factory.h:38
Definition: kernel_registry.h:28
Definition: database.cpp:36