Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
-> use find_package(blaze) only if BLAZE_PATH is not set
Update neuralnetapi.cpp
-> remove "assert(size <= sizeof(input) / sizeof(double));"
  • Loading branch information
QueensGambit committed Dec 6, 2022
1 parent b1c2a9c commit 5ec10bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ if(DEFINED ENV{BLAZE_PATH})
include_directories("$ENV{BLAZE_PATH}")
else()
MESSAGE(STATUS "BLAZE_PATH not set")
find_package( blaze REQUIRED )
endif()

find_package( blaze REQUIRED HINTS ${BLAZE_PATH} )
if( blaze_FOUND )
add_library( blaze_target INTERFACE )
target_link_libraries( blaze_target INTERFACE blaze::blaze )
Expand Down
2 changes: 0 additions & 2 deletions engine/src/nn/neuralnetapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ Version read_version_from_string(const string &modelFileName)

void apply_softmax(float* input, size_t size) {

assert(size <= sizeof(input) / sizeof(double));

size_t idx;
double maximum = -INFINITY;
for (idx = 0; idx < size; ++idx) {
Expand Down

0 comments on commit 5ec10bd

Please sign in to comment.