mirror of https://github.com/milvus-io/milvus.git
Merge branch 'rename_test' into 'branch-0.5.0'
MS-565 rename test->unittest and fix parameter autotune bug See merge request megasearch/milvus!643 Former-commit-id: 36d9ea3c25f1cf080cd63f70eccb352ec0f6bc3fpull/191/head
commit
56cc4ea530
|
@ -95,7 +95,7 @@ endif()
|
|||
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
|
||||
if(BUILD_UNIT_TEST STREQUAL "ON")
|
||||
add_subdirectory(test)
|
||||
add_subdirectory(unittest)
|
||||
endif()
|
||||
|
||||
config_summary()
|
||||
|
|
|
@ -30,7 +30,7 @@ set(util_srcs
|
|||
${CORE_SOURCE_DIR}/knowhere/knowhere/adapter/ArrowAdapter.cpp
|
||||
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Exception.cpp
|
||||
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Timer.cpp
|
||||
${CORE_SOURCE_DIR}/test/utils.cpp
|
||||
${CORE_SOURCE_DIR}/unittest/utils.cpp
|
||||
)
|
||||
|
||||
#<IVF-TEST>
|
|
@ -23,7 +23,7 @@
|
|||
#include "knowhere/index/vector_index/IndexIDMAP.h"
|
||||
#include "knowhere/index/vector_index/helpers/Cloner.h"
|
||||
|
||||
#include "test/utils.h"
|
||||
#include "unittest/utils.h"
|
||||
|
||||
namespace {
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
#include "knowhere/index/vector_index/IndexIVFSQ.h"
|
||||
#include "knowhere/index/vector_index/helpers/Cloner.h"
|
||||
|
||||
#include "test/utils.h"
|
||||
#include "unittest/utils.h"
|
||||
|
||||
namespace {
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
#include "knowhere/index/vector_index/IndexKDT.h"
|
||||
#include "knowhere/index/vector_index/helpers/Definitions.h"
|
||||
|
||||
#include "test/utils.h"
|
||||
#include "unittest/utils.h"
|
||||
|
||||
namespace {
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
|
||||
#include "knowhere/index/vector_index/nsg/NSGIO.h"
|
||||
|
||||
#include "test/utils.h"
|
||||
#include "unittest/utils.h"
|
||||
|
||||
namespace {
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
#include "test/utils.h"
|
||||
#include "unittest/utils.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
|
@ -81,7 +81,7 @@ IVFConfAdapter::MatchNlist(const int64_t& size, const int64_t& nlist) {
|
|||
// calculate a proper nlist if nlist not specified or size less than TYPICAL_COUNT
|
||||
return int(size / TYPICAL_COUNT * 16384);
|
||||
}
|
||||
return 0;
|
||||
return nlist;
|
||||
}
|
||||
|
||||
knowhere::Config
|
||||
|
|
Loading…
Reference in New Issue