Skip to content

Commit

Permalink
fix: unusual builds (ie w/o torch or with tsne only lead to build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fantes authored and sileht committed Sep 11, 2020
1 parent 4c19d78 commit 241bf6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ endif()

# main library, main & tests
include_directories ("${PROJECT_SOURCE_DIR}/src")
include_directories(${CMAKE_BINARY_DIR}/src)
add_subdirectory (src)

# Flags used by the subdirectories
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,6 @@ endif()
if (USE_XGBOOST)
add_dependencies(ddetect xgboost)
endif()
if (USE_TNSE)
add_dependencies(ddetect Multicore-TSNE)
endif()
2 changes: 2 additions & 0 deletions src/generators/net_caffe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ namespace dd
}
}

#ifdef USE_TORCH
template <>
void NetInputCaffe<ImgTorchInputFileConn>::configure_inputs(
const APIData &ad_mllib, const ImgTorchInputFileConn &inputc)
Expand Down Expand Up @@ -284,6 +285,7 @@ namespace dd
mdparam->set_height(height);
mdparam->set_width(width);
}
#endif

template <class TInputCaffe>
void NetInputCaffe<TInputCaffe>::add_embed(caffe::NetParameter *net_param,
Expand Down

0 comments on commit 241bf6b

Please sign in to comment.