Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuClonerOptions.h
1 /**
2  * Copyright (c) Facebook, Inc. and its affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #pragma once
9 
10 #include "GpuIndicesOptions.h"
11 
12 namespace faiss { namespace gpu {
13 
14 /// set some options on how to copy to GPU
17 
18  /// how should indices be stored on index types that support indices
19  /// (anything but GpuIndexFlat*)?
20  IndicesOptions indicesOptions;
21 
22  /// is the coarse quantizer in float16?
24 
25  /// for GpuIndexIVFFlat, is storage in float16?
26  /// for GpuIndexIVFPQ, are intermediate calculations in float16?
27  bool useFloat16;
28 
29  /// use precomputed tables?
31 
32  /// reserve vectors in the invfiles?
34 
35  /// For GpuIndexFlat, store data in transposed layout?
37 
38  /// Set verbose options on the index
39  bool verbose;
40 };
41 
44 
45  /// Whether to shard the index across GPUs, versus replication
46  /// across GPUs
47  bool shard;
48 
49  /// IndexIVF::copy_subset_to subset type
51 };
52 
53 } } // namespace
bool storeTransposed
For GpuIndexFlat, store data in transposed layout?
set some options on how to copy to GPU
bool usePrecomputed
use precomputed tables?
int shard_type
IndexIVF::copy_subset_to subset type.
bool useFloat16CoarseQuantizer
is the coarse quantizer in float16?
bool verbose
Set verbose options on the index.
long reserveVecs
reserve vectors in the invfiles?