Skip to content

Commit

Permalink
Use more sensible name
Browse files Browse the repository at this point in the history
because we're not only making MNIST modules!
  • Loading branch information
tomjaguarpaw committed Nov 19, 2019
1 parent 5cc496d commit c46cd17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/builds/build_pybind11_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ build_pybind11_module() {
-shared \
-fPIC \
-o $MODULE_FILE \
-DMNISTCNNCPP_MODULE_NAME=$MODULE_NAME \
-DPYTHON_MODULE_NAME=$MODULE_NAME \
$CPP_FILE
}
2 changes: 1 addition & 1 deletion test/ksc/adbench-lstmpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void declare_vec(py::module &m, std::string typestr) {
// possible because Python tuples map to std::tuples regardless of
// their contents. I'll look into it later. For now I'll just have a
// bunch of verbose replication.
PYBIND11_MODULE(MNISTCNNCPP_MODULE_NAME, m) {
PYBIND11_MODULE(PYTHON_MODULE_NAME, m) {
declare_vec<double>(m, std::string("double"));
declare_vec<std::tuple<ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>>>(m, std::string("tuple_vec10"));
declare_vec<std::tuple<ks::vec<double>, ks::vec<double>>>(m, std::string("tuple_vec2"));
Expand Down
2 changes: 1 addition & 1 deletion test/ksc/gmmpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void declare_vec(py::module &m, std::string typestr) {
// possible because Python tuples map to std::tuples regardless of
// their contents. I'll look into it later. For now I'll just have a
// bunch of verbose replication.
PYBIND11_MODULE(MNISTCNNCPP_MODULE_NAME, m) {
PYBIND11_MODULE(PYTHON_MODULE_NAME, m) {
declare_vec<double>(m, std::string("double"));
declare_vec<std::tuple<ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>, ks::vec<double>>>(m, std::string("tuple_vec10"));
declare_vec<std::tuple<ks::vec<double>, ks::vec<double>>>(m, std::string("tuple_vec2"));
Expand Down
2 changes: 1 addition & 1 deletion test/ksc/mnistcnnpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void declare_vec(py::module &m, std::string typestr) {

// In the future it might make more sense to move the vec type
// definitions to a general Knossos CPP types Python module.
PYBIND11_MODULE(MNISTCNNCPP_MODULE_NAME, m) {
PYBIND11_MODULE(PYTHON_MODULE_NAME, m) {
declare_vec<double>(m, std::string("double"));
declare_vec<ks::vec<double> >(m, std::string("vec_double"));
declare_vec<ks::vec<ks::vec<double> > >(m, std::string("vec_vec_double"));
Expand Down

0 comments on commit c46cd17

Please sign in to comment.