MCPcopy Create free account
hub / github.com/alibaba/zvec / Initialize

Method Initialize

src/binding/python/typing/python_type.cc:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace zvec {
18
19void ZVecPyTyping::Initialize(pybind11::module_ &parent) {
20 auto m = parent.def_submodule(
21 "typing", "This module contains the basic data types of Zvec");
22 // binding base types
23 bind_datatypes(m);
24 bind_index_types(m);
25 bind_metric_types(m);
26 bind_quantize_types(m);
27 bind_io_backend_types(m);
28 bind_status(m);
29}
30
31void ZVecPyTyping::bind_datatypes(pybind11::module_ &m) {
32 py::enum_<DataType>(m, "DataType", R"pbdoc(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected