|
kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
|
#include <kodama.hpp>
Public Attributes | |
| Backend | backend = Backend::CPU |
| KNNIndexType | index_type = KNNIndexType::NativeHNSW |
| DistanceMetric | metric = DistanceMetric::Cosine |
| int | k = 10 |
| int | ivf_nlist = 0 |
| int | ivf_nprobe = 0 |
| double | ivf_pilot_recall = 0.0 |
| int | hnsw_m = 0 |
| int | hnsw_ef_construction = 0 |
| int | hnsw_ef_search = 0 |
| int | hnsw_tune_k = 50 |
| double | hnsw_target_recall = 0.99 |
| int | gpu_device = 0 |
| int | n_threads = 1 |
Definition at line 239 of file kodama.hpp.
| Backend kodama::KNNParametersUsed::backend = Backend::CPU |
Definition at line 240 of file kodama.hpp.
| int kodama::KNNParametersUsed::gpu_device = 0 |
Definition at line 252 of file kodama.hpp.
| int kodama::KNNParametersUsed::hnsw_ef_construction = 0 |
Definition at line 248 of file kodama.hpp.
| int kodama::KNNParametersUsed::hnsw_ef_search = 0 |
Definition at line 249 of file kodama.hpp.
| int kodama::KNNParametersUsed::hnsw_m = 0 |
Definition at line 247 of file kodama.hpp.
| double kodama::KNNParametersUsed::hnsw_target_recall = 0.99 |
Definition at line 251 of file kodama.hpp.
| int kodama::KNNParametersUsed::hnsw_tune_k = 50 |
Definition at line 250 of file kodama.hpp.
| KNNIndexType kodama::KNNParametersUsed::index_type = KNNIndexType::NativeHNSW |
Definition at line 241 of file kodama.hpp.
| int kodama::KNNParametersUsed::ivf_nlist = 0 |
Definition at line 244 of file kodama.hpp.
| int kodama::KNNParametersUsed::ivf_nprobe = 0 |
Definition at line 245 of file kodama.hpp.
| double kodama::KNNParametersUsed::ivf_pilot_recall = 0.0 |
Definition at line 246 of file kodama.hpp.
| int kodama::KNNParametersUsed::k = 10 |
Definition at line 243 of file kodama.hpp.
| DistanceMetric kodama::KNNParametersUsed::metric = DistanceMetric::Cosine |
Definition at line 242 of file kodama.hpp.
| int kodama::KNNParametersUsed::n_threads = 1 |
Definition at line 253 of file kodama.hpp.