Faiss
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
GpuClonerOptions.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 #pragma once
10 
11 #include "GpuIndicesOptions.h"
12 
13 namespace faiss { namespace gpu {
14 
15 /// set some options on how to copy to GPU
18 
19  /// how should indices be stored on index types that support indices
20  /// (anything but GpuIndexFlat*)?
21  IndicesOptions indicesOptions;
22 
23  /// is the coarse quantizer in float16?
25 
26  /// for GpuIndexIVFFlat, is storage in float16?
27  /// for GpuIndexIVFPQ, are intermediate calculations in float16?
28  bool useFloat16;
29 
30  /// use precomputed tables?
32 
33  /// reserve vectors in the invfiles?
35 
36  /// For GpuIndexFlat, store data in transposed layout?
38 
39  /// Set verbose options on the index
40  bool verbose;
41 };
42 
45 
46  /// Whether to shard the index across GPUs, versus replication
47  /// across GPUs
48  bool shard;
49 
50  /// IndexIVF::copy_subset_to subset type
52 };
53 
54 } } // 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?