Code quality: renamed model/ to database/
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "core.h"
|
||||
#include "driver.h"
|
||||
#include "exceptions.h"
|
||||
#include "model.h"
|
||||
#include "database.h"
|
||||
|
||||
#include <boost/python.hpp>
|
||||
#include <boost/numpy.hpp>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "isaac/model/model.h"
|
||||
#include "isaac/database/model.h"
|
||||
#include "common.hpp"
|
||||
#include "core.h"
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace detail
|
||||
void export_core()
|
||||
{
|
||||
|
||||
bp::class_<isaac::model>("model", bp::no_init)
|
||||
bp::class_<isaac::model>("database", bp::no_init)
|
||||
.def("__init__", bp::make_constructor(detail::construct_model))
|
||||
.def("execute", &isc::model::execute);
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
|
||||
|
||||
#include "isaac/model/model.h"
|
||||
#include "isaac/database/model.h"
|
||||
#include "isaac/symbolic/execute.h"
|
||||
|
||||
#include "common.hpp"
|
||||
@@ -118,7 +118,7 @@ void export_driver()
|
||||
.def("append", &bp::vector_indexing_suite<queues_t>::append)
|
||||
;
|
||||
|
||||
bp::class_<isc::database::map_type>("models")
|
||||
bp::class_<isc::database::map_type>("databases")
|
||||
.def("__getitem__", &detail::model_map_indexing::get_item, bp::return_internal_reference<>())
|
||||
.def("__setitem__", &detail::model_map_indexing::set_item, bp::with_custodian_and_ward<1,2>())
|
||||
;
|
||||
@@ -168,7 +168,7 @@ void export_driver()
|
||||
|
||||
bp::class_<isc::driver::CommandQueue>("command_queue", bp::init<isc::driver::Context const &, isc::driver::Device const &>())
|
||||
.def("synchronize", &isc::driver::CommandQueue::synchronize)
|
||||
.add_property("models", bp::make_function(&isc::database::get, bp::return_internal_reference<>()))
|
||||
.add_property("databases", bp::make_function(&isc::database::get, bp::return_internal_reference<>()))
|
||||
.add_property("device", bp::make_function(&isc::driver::CommandQueue::device, bp::return_internal_reference<>()))
|
||||
;
|
||||
|
||||
|
@@ -3,10 +3,10 @@
|
||||
#include "isaac/kernels/templates/dot.h"
|
||||
#include "isaac/kernels/templates/gemv.h"
|
||||
#include "isaac/kernels/templates/gemm.h"
|
||||
#include "isaac/model/model.h"
|
||||
#include "isaac/database/model.h"
|
||||
|
||||
#include "common.hpp"
|
||||
#include "model.h"
|
||||
#include "database.h"
|
||||
|
||||
|
||||
namespace tpt = isaac::templates;
|
||||
|
Reference in New Issue
Block a user