Faiss
Docs
Home
Wiki
C++ API
Class list
File list
Namespace list
Struct list
Struct PyCallbackIDSelector
Struct PyCallbackIOReader
Struct PyCallbackIOWriter
Struct faiss::AdditiveCoarseQuantizer
Struct faiss::AdditiveQuantizer
Struct faiss::AlignedTable
Struct faiss::AlignedTableTightAlloc
Struct faiss::ArrayInvertedLists
Struct faiss::AutoTuneCriterion
Struct faiss::BinaryInvertedListScanner
Struct faiss::BitstringReader
Struct faiss::BitstringWriter
Struct faiss::BlockInvertedLists
Struct faiss::BlockInvertedListsIOHook
Struct faiss::BlockResultHandler
Struct faiss::BufferList
Struct faiss::BufferList::Buffer
Struct faiss::BufferedIOReader
Struct faiss::BufferedIOWriter
Struct faiss::CMax
Struct faiss::CMin
Struct faiss::CenteringTransform
Struct faiss::Cloner
Struct faiss::Clustering
Struct faiss::Clustering1D
Struct faiss::ClusteringIterationStats
Struct faiss::ClusteringParameters
Struct faiss::CodePacker
Struct faiss::CodePackerFlat
Struct faiss::CodePackerPQ4
Struct faiss::CodeSet
Struct faiss::CombinerRangeKNN
Struct faiss::DirectMap
Struct faiss::DirectMapAdd
Struct faiss::DistanceComputer
Struct faiss::DummyScaler
Struct faiss::EnumeratedVectors
Struct faiss::FastScanStats
Struct faiss::FileIOReader
Struct faiss::FileIOWriter
Struct faiss::FlatCodesDistanceComputer
Struct faiss::GenHammingComputer16
Struct faiss::GenHammingComputer32
Struct faiss::GenHammingComputer8
Struct faiss::GenHammingComputerM8
Struct faiss::HCounterState
Struct faiss::HNSW
Struct faiss::HNSWStats
Struct faiss::HNSW::MinimaxHeap
Struct faiss::HNSW::NodeDistCloser
Struct faiss::HNSW::NodeDistFarther
Struct faiss::HStackInvertedLists
Struct faiss::HammingComputer
Struct faiss::HammingComputer16
Struct faiss::HammingComputer20
Struct faiss::HammingComputer32
Struct faiss::HammingComputer4
Struct faiss::HammingComputer64
Struct faiss::HammingComputer8
Struct faiss::HammingComputerDefault
Struct faiss::HeapArray
Struct faiss::HeapBlockResultHandler
Struct faiss::HeapBlockResultHandler::SingleResultHandler
Struct faiss::HeapWithBuckets
Struct faiss::HeapWithBucketsForHamming16
Struct faiss::HeapWithBucketsForHamming16< CMax< int, int64_t >, NBUCKETS, N, HammingComputerT >
Struct faiss::HeapWithBucketsForHamming32
Struct faiss::HeapWithBucketsForHamming32< CMax< int, int64_t >, NBUCKETS, N, HammingComputerT >
Struct faiss::HeapWithBuckets< CMax< float, int >, NBUCKETS, N >
Struct faiss::IDSelector
Struct faiss::IDSelectorAll
Struct faiss::IDSelectorAnd
Struct faiss::IDSelectorArray
Struct faiss::IDSelectorBatch
Struct faiss::IDSelectorBitmap
Struct faiss::IDSelectorNot
Struct faiss::IDSelectorOr
Struct faiss::IDSelectorRange
Struct faiss::IDSelectorTranslated
Struct faiss::IDSelectorXOr
Struct faiss::IOReader
Struct faiss::IOWriter
Struct faiss::ITQMatrix
Struct faiss::ITQTransform
Struct faiss::IVFFastScanStats
Struct faiss::IVFPQSearchParameters
Struct faiss::Index
Struct faiss::Index2Layer
Struct faiss::IndexAdditiveQuantizer
Struct faiss::IndexAdditiveQuantizerFastScan
Struct faiss::IndexBinary
Struct faiss::IndexBinaryFlat
Struct faiss::IndexBinaryFromFloat
Struct faiss::IndexBinaryHNSW
Struct faiss::IndexBinaryHash
Struct faiss::IndexBinaryHashStats
Struct faiss::IndexBinaryHash::InvertedList
Struct faiss::IndexBinaryIVF
Struct faiss::IndexBinaryMultiHash
Struct faiss::IndexFastScan
Struct faiss::IndexFlat
Struct faiss::IndexFlat1D
Struct faiss::IndexFlatCodes
Struct faiss::IndexFlatIP
Struct faiss::IndexFlatL2
Struct faiss::IndexHNSW
Struct faiss::IndexHNSW2Level
Struct faiss::IndexHNSWCagra
Struct faiss::IndexHNSWFlat
Struct faiss::IndexHNSWPQ
Struct faiss::IndexHNSWSQ
Struct faiss::IndexIDMap2Template
Struct faiss::IndexIDMapTemplate
Struct faiss::IndexIVF
Struct faiss::IndexIVFAdditiveQuantizer
Struct faiss::IndexIVFAdditiveQuantizerFastScan
Struct faiss::IndexIVFFastScan
Struct faiss::IndexIVFFastScan::CoarseQuantized
Struct faiss::IndexIVFFlat
Struct faiss::IndexIVFFlatDedup
Struct faiss::IndexIVFIndependentQuantizer
Struct faiss::IndexIVFInterface
Struct faiss::IndexIVFLocalSearchQuantizer
Struct faiss::IndexIVFLocalSearchQuantizerFastScan
Struct faiss::IndexIVFPQ
Struct faiss::IndexIVFPQFastScan
Struct faiss::IndexIVFPQR
Struct faiss::IndexIVFPQStats
Struct faiss::IndexIVFProductLocalSearchQuantizer
Struct faiss::IndexIVFProductLocalSearchQuantizerFastScan
Struct faiss::IndexIVFProductResidualQuantizer
Struct faiss::IndexIVFProductResidualQuantizerFastScan
Struct faiss::IndexIVFResidualQuantizer
Struct faiss::IndexIVFResidualQuantizerFastScan
Struct faiss::IndexIVFScalarQuantizer
Struct faiss::IndexIVFSpectralHash
Struct faiss::IndexIVFStats
Struct faiss::IndexLSH
Struct faiss::IndexLattice
Struct faiss::IndexLocalSearchQuantizer
Struct faiss::IndexLocalSearchQuantizerFastScan
Struct faiss::IndexNNDescent
Struct faiss::IndexNNDescentFlat
Struct faiss::IndexNSG
Struct faiss::IndexNSGFlat
Struct faiss::IndexNSGPQ
Struct faiss::IndexNSGSQ
Struct faiss::IndexNeuralNetCodec
Struct faiss::IndexPQ
Struct faiss::IndexPQFastScan
Struct faiss::IndexPQStats
Struct faiss::IndexPreTransform
Struct faiss::IndexProductLocalSearchQuantizer
Struct faiss::IndexProductLocalSearchQuantizerFastScan
Struct faiss::IndexProductResidualQuantizer
Struct faiss::IndexProductResidualQuantizerFastScan
Struct faiss::IndexQINCo
Struct faiss::IndexRandom
Struct faiss::IndexRefine
Struct faiss::IndexRefineFlat
Struct faiss::IndexRefineSearchParameters
Struct faiss::IndexResidualQuantizer
Struct faiss::IndexResidualQuantizerFastScan
Struct faiss::IndexRowwiseMinMax
Struct faiss::IndexRowwiseMinMaxBase
Struct faiss::IndexRowwiseMinMaxFP16
Struct faiss::IndexScalarQuantizer
Struct faiss::IndexShardsIVF
Struct faiss::IndexShardsTemplate
Struct faiss::IndexSplitVectors
Struct faiss::InterruptCallback
Struct faiss::IntersectionCriterion
Struct faiss::InvertedListScanner
Struct faiss::InvertedLists
Struct faiss::InvertedListsIOHook
Struct faiss::InvertedListsIterator
Struct faiss::InvertedLists::ScopedCodes
Struct faiss::InvertedLists::ScopedIds
Struct faiss::Level1Quantizer
Struct faiss::LinearTransform
Struct faiss::LocalSearchCoarseQuantizer
Struct faiss::LocalSearchQuantizer
Struct faiss::MaskedInvertedLists
Struct faiss::MatrixStats
Struct faiss::MatrixStats::Occurrence
Struct faiss::MatrixStats::PerDimStats
Struct faiss::MultiIndexQuantizer
Struct faiss::MultiIndexQuantizer2
Struct faiss::NNDescent
Struct faiss::NSG
Struct faiss::NegativeDistanceComputer
Struct faiss::NeuralNetCodec
Struct faiss::NormTableScaler
Struct faiss::NormalizationTransform
Struct faiss::OPQMatrix
Struct faiss::OnDiskInvertedLists
Struct faiss::OnDiskInvertedListsIOHook
Struct faiss::OnDiskInvertedLists::Slot
Struct faiss::OnDiskOneList
Struct faiss::OneRecallAtRCriterion
Struct faiss::OperatingPoint
Struct faiss::OperatingPoints
Struct faiss::PCAMatrix
Struct faiss::PQDecoder16
Struct faiss::PQDecoder8
Struct faiss::PQDecoderGeneric
Struct faiss::PQEncoder16
Struct faiss::PQEncoder8
Struct faiss::PQEncoderGeneric
Struct faiss::ParameterRange
Struct faiss::ParameterSpace
Struct faiss::PartitionStats
Struct faiss::PermutationObjective
Struct faiss::PolysemousTraining
Struct faiss::ProductAdditiveQuantizer
Struct faiss::ProductLocalSearchQuantizer
Struct faiss::ProductQuantizer
Struct faiss::ProductResidualQuantizer
Struct faiss::ProgressiveDimClustering
Struct faiss::ProgressiveDimClusteringParameters
Struct faiss::ProgressiveDimIndexFactory
Struct faiss::QINCo
Struct faiss::QINCoStep
Struct faiss::Quantizer
Struct faiss::RandomGenerator
Struct faiss::RandomRotationMatrix
Struct faiss::RangeQueryResult
Struct faiss::RangeSearchBlockResultHandler
Struct faiss::RangeSearchBlockResultHandler::SingleResultHandler
Struct faiss::RangeSearchPartialResult
Struct faiss::RangeSearchResult
Struct faiss::ReadOnlyInvertedLists
Struct faiss::RemapDimensionsTransform
Struct faiss::Repeat
Struct faiss::Repeats
Struct faiss::ReproduceDistancesObjective
Struct faiss::ReservoirBlockResultHandler
Struct faiss::ReservoirBlockResultHandler::SingleResultHandler
Struct faiss::ReservoirTopN
Struct faiss::ResidualCoarseQuantizer
Struct faiss::ResidualQuantizer
Struct faiss::ResultHandler
Struct faiss::SIMDResultHandler
Struct faiss::SIMDResultHandlerToFloat
Struct faiss::ScalarQuantizer
Struct faiss::ScalarQuantizer::SQDistanceComputer
Struct faiss::ScalarQuantizer::SQuantizer
Struct faiss::SearchParameters
Struct faiss::SearchParametersHNSW
Struct faiss::SearchParametersIVF
Struct faiss::SearchParametersPQ
Struct faiss::SearchParametersPreTransform
Struct faiss::SearchParametersResidualCoarseQuantizer
Struct faiss::SimulatedAnnealingOptimizer
Struct faiss::SimulatedAnnealingParameters
Struct faiss::SliceInvertedLists
Struct faiss::SplitMix64RandomGenerator
Struct faiss::StopWordsInvertedLists
Struct faiss::TimeoutCallback
Struct faiss::Top1BlockResultHandler
Struct faiss::Top1BlockResultHandler::SingleResultHandler
Struct faiss::TransformedVectors
Struct faiss::VStackInvertedLists
Struct faiss::VectorDistance
Struct faiss::VectorIOReader
Struct faiss::VectorIOWriter
Struct faiss::VectorTransform
Struct faiss::VisitedTable
Struct faiss::ZnSphereCodec
Struct faiss::ZnSphereCodecAlt
Struct faiss::ZnSphereCodecRec
Struct faiss::ZnSphereCodec::CodeSegment
Struct faiss::ZnSphereSearch
Struct faiss::cppcontrib::Index2LevelDecoder
Struct faiss::cppcontrib::IndexMinMaxDecoder
Struct faiss::cppcontrib::IndexMinMaxFP16Decoder
Struct faiss::cppcontrib::IndexPQDecoder
Struct faiss::cppcontrib::detail::CoarseBitType
Struct faiss::cppcontrib::detail::CoarseBitType< 16 >
Struct faiss::cppcontrib::detail::CoarseBitType< 8 >
Struct faiss::detail::simdlib::binary_func_impl
Struct faiss::detail::simdlib::is_simd256bit
Struct faiss::detail::simdlib::set1_impl
Struct faiss::detail::simdlib::unary_func_impl
Struct faiss::gpu::AllocInfo
Struct faiss::gpu::AllocRequest
Struct faiss::gpu::GpuClonerOptions
Struct faiss::gpu::GpuDistanceParams
Struct faiss::gpu::GpuIcmEncoderFactory
Struct faiss::gpu::GpuIndexBinaryFlatConfig
Struct faiss::gpu::GpuIndexCagra
Struct faiss::gpu::GpuIndexCagraConfig
Struct faiss::gpu::GpuIndexConfig
Struct faiss::gpu::GpuIndexFlatConfig
Struct faiss::gpu::GpuIndexIVFConfig
Struct faiss::gpu::GpuIndexIVFFlatConfig
Struct faiss::gpu::GpuIndexIVFPQConfig
Struct faiss::gpu::GpuIndexIVFScalarQuantizerConfig
Struct faiss::gpu::GpuMemoryReservation
Struct faiss::gpu::GpuMultipleClonerOptions
Struct faiss::gpu::GpuParameterSpace
Struct faiss::gpu::GpuProgressiveDimIndexFactory
Struct faiss::gpu::IVFPQBuildCagraConfig
Struct faiss::gpu::IVFPQSearchCagraConfig
Struct faiss::gpu::IndexWrapper
Struct faiss::gpu::SearchParametersCagra
Struct faiss::gpu::StackDeviceMemory::Range
Struct faiss::gpu::StackDeviceMemory::Stack
Struct faiss::gpu::ToCPUCloner
Struct faiss::gpu::ToGpuCloner
Struct faiss::gpu::ToGpuClonerMultiple
Struct faiss::ivflib::SlidingIndexWindow
Struct faiss::lsq::IcmEncoder
Struct faiss::lsq::IcmEncoderFactory
Struct faiss::lsq::LSQTimer
Struct faiss::lsq::LSQTimerScope
Struct faiss::nn::Embedding
Struct faiss::nn::FFN
Struct faiss::nn::Linear
Struct faiss::nn::Tensor2DTemplate
Struct faiss::nndescent::Neighbor
Struct faiss::nndescent::Nhood
Struct faiss::nsg::Graph
Struct faiss::rq_encode_steps::ComputeCodesAddCentroidsLUT0MemoryPool
Struct faiss::rq_encode_steps::ComputeCodesAddCentroidsLUT1MemoryPool
Struct faiss::rq_encode_steps::RefineBeamLUTMemoryPool
Struct faiss::rq_encode_steps::RefineBeamMemoryPool
Struct faiss::simd16uint16
Struct faiss::simd256bit
Struct faiss::simd32uint16
Struct faiss::simd32uint8
Struct faiss::simd512bit
Struct faiss::simd64uint8
Struct faiss::simd8float32
Struct faiss::simd8uint32
Struct faiss::simd_result_handlers::DummyResultHandler
Struct faiss::simd_result_handlers::FixedStorageHandler
Struct faiss::simd_result_handlers::HeapHandler
Struct faiss::simd_result_handlers::PartialRangeHandler
Struct faiss::simd_result_handlers::RangeHandler
Struct faiss::simd_result_handlers::RangeHandler::Triplet
Struct faiss::simd_result_handlers::ReservoirHandler
Struct faiss::simd_result_handlers::ResultHandlerCompare
Struct faiss::simd_result_handlers::SingleResultHandler
Struct faiss::simd_result_handlers::StoreResultHandler
Faiss
Struct list
Struct faiss::nn::Linear
View page source
Struct faiss::nn::Linear
struct
Linear
minimal translation of
nn.Linear
Public Functions
Linear
(
size_t
in_features
,
size_t
out_features
,
bool
bias
=
true
)
Tensor2D
operator
()
(
const
Tensor2D
&
x
)
const
Public Members
size_t
in_features
size_t
out_features
std
::
vector
<
float
>
weight
std
::
vector
<
float
>
bias