Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuClonerOptions_c.h
1 /**
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD+Patents license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 // Copyright 2004-present Facebook. All Rights Reserved.
10 // -*- c -*-
11 
12 #ifndef FAISS_GPU_CLONER_OPTIONS_C_H
13 #define FAISS_GPU_CLONER_OPTIONS_C_H
14 
15 #include "faiss_c.h"
16 #include "GpuIndicesOptions_c.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 FAISS_DECLARE_CLASS(GpuClonerOptions)
23 
24 FAISS_DECLARE_DESTRUCTOR(GpuClonerOptions)
25 
26 // Default constructor for GpuClonerOptions
27 int faiss_GpuClonerOptions_new(FaissGpuClonerOptions**);
28 
29 /// how should indices be stored on index types that support indices
30 /// (anything but GpuIndexFlat*)?
31 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, FaissIndicesOptions, indicesOptions)
32 
33 /// (boolean) is the coarse quantizer in float16?
34 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, useFloat16CoarseQuantizer)
35 
36 /// (boolean) for GpuIndexIVFFlat, is storage in float16?
37 /// for GpuIndexIVFPQ, are intermediate calculations in float16?
38 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, useFloat16)
39 
40 /// (boolean) use precomputed tables?
41 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, usePrecomputed)
42 
43 /// reserve vectors in the invfiles?
44 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, long, reserveVecs)
45 
46 /// (boolean) For GpuIndexFlat, store data in transposed layout?
47 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, storeTransposed)
48 
49 /// (boolean) Set verbose options on the index
50 FAISS_DECLARE_GETTER_SETTER(GpuClonerOptions, int, verbose)
51 
52 FAISS_DECLARE_CLASS_INHERITED(GpuMultipleClonerOptions, GpuClonerOptions)
53 
54 /// (boolean) Whether to shard the index across GPUs, versus replication
55 /// across GPUs
56 FAISS_DECLARE_GETTER_SETTER(GpuMultipleClonerOptions, int, shard)
57 
58 /// IndexIVF::copy_subset_to subset type
59 FAISS_DECLARE_GETTER_SETTER(GpuMultipleClonerOptions, int, shard_type)
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 #endif