6 Commits
Author SHA1 Message Date
Binozo aff8589c9e c_api: expose ScalarQuantizer codec and complete FaissQuantizerType enum (#5477)
Summary:
Hi,

the `c_api` is missing exports for the FaissScalarQuantizer scalar quantizer. I've added them.

Additionally I synced the `c_api/IndexScalarQuantizer_c.h` `FaissQuantizerType` enum with the cpp side which is required because `faiss_IndexScalarQuantizer_sq` may return an enum value which is not contained in the `c_api` enum definition.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5477

Reviewed By: trang-nm-nguyen

Differential Revision: D114077316

Pulled By: mnorris11

fbshipit-source-id: 6c714a86daa20a490b3892c3a78356b7beebc92e
2026-07-29 10:46:07 -07:00
Michael Norris eff0898a13 Enable linting: lint config changes plus arc lint command (#3966)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3966

This actually enables the linting.

Manual changes:
- tools/arcanist/lint/fbsource-licenselint-config.toml
- tools/arcanist/lint/fbsource-lint-engine.toml

Automated changes:
`arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files faiss'`

Reviewed By: asadoughi

Differential Revision: D64484165

fbshipit-source-id: 4f2f6e953c94ef6ebfea8a5ae035ccfbea65ed04
2024-10-22 09:46:48 -07:00
Michael Norris 56a383f253 Resolve "duplicate-license-header": Find and replace duplicate license headers (#3967)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3967

This diff just finds and replaces duplicate license headers.

See the errors for "duplicate-license-header" in D64429711 under "linter-coverage-verification" signal.

Reviewed By: asadoughi

Differential Revision: D64484123

fbshipit-source-id: 906e8baa3a11a3bbee174a03dcc27681f9fd78c2
2024-10-21 08:26:22 -07:00
Matthijs Douze fd09e51316 move by_residual to IndexIVF (#2870)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2870

Factor by_residual for all the IndexIVF inheritors.
Some training code can be put in IndexIVF and `train_residual` is replaced with `train_encoder`.

This will be used for the IndependentQuantizer work.

Reviewed By: alexanderguzhva

Differential Revision: D45987304

fbshipit-source-id: 7310a687b556b2faa15a76456b1d9000e21b58ce
2023-05-23 09:56:19 -07:00
Alexander Andreev d9764d8aff Add IndexIVFScalarQuantizer for c_api (#1829)
Summary:
This PR add impl IndexIVFScalarQuantizer in c_api interface

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1829

Reviewed By: beauby

Differential Revision: D27904571

Pulled By: mdouze

fbshipit-source-id: 2cdbbd356f7520cea897f69c90486837c569ed19
2021-04-22 05:19:42 -07:00
Alexander Andreev 1ddb517bbd Add IndexScalarQuantizer for c_api (#1802)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1802

Reviewed By: beauby

Differential Revision: D27706399

Pulled By: mdouze

fbshipit-source-id: 61ac99f61e9e44b2fca8e3de45357ee4c0a0b9d7
2021-04-15 23:04:49 -07:00