Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
9bfd48cd
milvus
项目概览
qq_35024513
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
14
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
9bfd48cd
编写于
4月 22, 2020
作者:
B
Ben
提交者:
GitHub
4月 22, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move the definiation to cpp file (#2033)
Signed-off-by:
N
Ben
<
sckim2008@gmail.com
>
上级
ff9697b1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
13 deletion
+30
-13
core/src/index/knowhere/knowhere/index/vector_index/IndexType.cpp
.../index/knowhere/knowhere/index/vector_index/IndexType.cpp
+17
-0
core/src/index/knowhere/knowhere/index/vector_index/IndexType.h
...rc/index/knowhere/knowhere/index/vector_index/IndexType.h
+13
-13
未找到文件。
core/src/index/knowhere/knowhere/index/vector_index/IndexType.cpp
浏览文件 @
9bfd48cd
...
...
@@ -55,6 +55,23 @@ static std::unordered_map<std::string, int32_t> str_old_index_type_map = {
{
IndexEnum
::
INDEX_FAISS_BIN_IVFFLAT
,
(
int32_t
)
OldIndexType
::
FAISS_BIN_IVFLAT_CPU
},
};
/* used in 0.8.0 */
namespace
IndexEnum
{
const
char
*
INVALID
=
""
;
const
char
*
INDEX_FAISS_IDMAP
=
"IDMAP"
;
const
char
*
INDEX_FAISS_IVFFLAT
=
"IVF_FLAT"
;
const
char
*
INDEX_FAISS_IVFPQ
=
"IVF_PQ"
;
const
char
*
INDEX_FAISS_IVFSQ8
=
"IVF_SQ8"
;
const
char
*
INDEX_FAISS_IVFSQ8H
=
"IVF_SQ8_HYBRID"
;
const
char
*
INDEX_FAISS_BIN_IDMAP
=
"BIN_IDMAP"
;
const
char
*
INDEX_FAISS_BIN_IVFFLAT
=
"BIN_IVF_FLAT"
;
const
char
*
INDEX_NSG
=
"NSG"
;
const
char
*
INDEX_SPTAG_KDT_RNT
=
"SPTAG_KDT_RNT"
;
const
char
*
INDEX_SPTAG_BKT_RNT
=
"SPTAG_BKT_RNT"
;
const
char
*
INDEX_HNSW
=
"HNSW"
;
const
char
*
INDEX_ANNOY
=
"ANNOY"
;
}
// namespace IndexEnum
std
::
string
OldIndexTypeToStr
(
const
int32_t
type
)
{
try
{
...
...
core/src/index/knowhere/knowhere/index/vector_index/IndexType.h
浏览文件 @
9bfd48cd
...
...
@@ -43,19 +43,19 @@ using IndexType = std::string;
/* used in 0.8.0 */
namespace
IndexEnum
{
constexpr
const
char
*
INVALID
=
""
;
constexpr
const
char
*
INDEX_FAISS_IDMAP
=
"IDMAP"
;
constexpr
const
char
*
INDEX_FAISS_IVFFLAT
=
"IVF_FLAT"
;
constexpr
const
char
*
INDEX_FAISS_IVFPQ
=
"IVF_PQ"
;
constexpr
const
char
*
INDEX_FAISS_IVFSQ8
=
"IVF_SQ8"
;
constexpr
const
char
*
INDEX_FAISS_IVFSQ8H
=
"IVF_SQ8_HYBRID"
;
constexpr
const
char
*
INDEX_FAISS_BIN_IDMAP
=
"BIN_IDMAP"
;
constexpr
const
char
*
INDEX_FAISS_BIN_IVFFLAT
=
"BIN_IVF_FLAT"
;
constexpr
const
char
*
INDEX_NSG
=
"NSG"
;
constexpr
const
char
*
INDEX_SPTAG_KDT_RNT
=
"SPTAG_KDT_RNT"
;
constexpr
const
char
*
INDEX_SPTAG_BKT_RNT
=
"SPTAG_BKT_RNT"
;
constexpr
const
char
*
INDEX_HNSW
=
"HNSW"
;
constexpr
const
char
*
INDEX_ANNOY
=
"ANNOY"
;
extern
const
char
*
INVALID
;
extern
const
char
*
INDEX_FAISS_IDMAP
;
extern
const
char
*
INDEX_FAISS_IVFFLAT
;
extern
const
char
*
INDEX_FAISS_IVFPQ
;
extern
const
char
*
INDEX_FAISS_IVFSQ8
;
extern
const
char
*
INDEX_FAISS_IVFSQ8H
;
extern
const
char
*
INDEX_FAISS_BIN_IDMAP
;
extern
const
char
*
INDEX_FAISS_BIN_IVFFLAT
;
extern
const
char
*
INDEX_NSG
;
extern
const
char
*
INDEX_SPTAG_KDT_RNT
;
extern
const
char
*
INDEX_SPTAG_BKT_RNT
;
extern
const
char
*
INDEX_HNSW
;
extern
const
char
*
INDEX_ANNOY
;
}
// namespace IndexEnum
enum
class
IndexMode
{
MODE_CPU
=
0
,
MODE_GPU
=
1
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录