mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
add new test
This commit is contained in:
parent
1bebe57836
commit
da4278779d
3
pyengine/engine/controller/tests/test_scheduler.py
Normal file
3
pyengine/engine/controller/tests/test_scheduler.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import unittest
|
||||||
|
from ..scheduler import *
|
||||||
|
|
@ -98,7 +98,8 @@ class VectorEngine(object):
|
|||||||
|
|
||||||
# create index
|
# create index
|
||||||
index_builder = build_index.FactoryIndex()
|
index_builder = build_index.FactoryIndex()
|
||||||
index = index_builder().build(d, raw_data)
|
index = index_builder().build(d, raw_data) # type: index
|
||||||
|
index = build_index.Index.serialize(index) # type: array
|
||||||
|
|
||||||
# TODO(jinhai): store index into Cache
|
# TODO(jinhai): store index into Cache
|
||||||
index_filename = file.filename + '_index'
|
index_filename = file.filename + '_index'
|
||||||
|
Loading…
Reference in New Issue
Block a user