Initial commit
This commit is contained in:
24
packages/leann-backend-diskann/third_party/DiskANN/python/include/common.h
vendored
Normal file
24
packages/leann-backend-diskann/third_party/DiskANN/python/include/common.h
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <utility>
|
||||
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/numpy.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
namespace diskannpy
|
||||
{
|
||||
|
||||
typedef uint32_t filterT;
|
||||
|
||||
typedef uint32_t StaticIdType;
|
||||
typedef uint32_t DynamicIdType;
|
||||
|
||||
template <class IdType> using NeighborsAndDistances = std::pair<py::array_t<IdType>, py::array_t<float>>;
|
||||
|
||||
}; // namespace diskannpy
|
||||
Reference in New Issue
Block a user