Commit Graph

7 Commits (export-D68388863)

Author SHA1 Message Date
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
Bhavik Sheth 4cfa63865f add get_version() for c_api. (#3688)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3688
Looks like our previous changes only modified the cpp API. Not the c_api like the request wanted. This attempts to add faiss_get_version to c_api

Reviewed By: ramilbakhshyiev

Differential Revision: D60207739

fbshipit-source-id: 07184aeae92a154bb3f440279595077f002851f3
2024-07-25 23:38:46 -07:00
Alexandr Guzhva a5b03cb9f6 Fix build on Alpine Linux (#3148)
Summary:
Fixes https://github.com/facebookresearch/faiss/issues/3142

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

Reviewed By: algoriddle

Differential Revision: D51741575

Pulled By: mdouze

fbshipit-source-id: b4ea2302802ef70b53f8afe5a7ab4ee02bf6659e
2023-12-01 02:52:52 -08:00
Alexander Andreev 14ddbc2911 Add faiss_pairwise_L2sqr_with_defaults into C_API (#2067)
Summary:
fixes https://github.com/facebookresearch/faiss/issues/2060

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

Reviewed By: beauby

Differential Revision: D31228802

Pulled By: mdouze

fbshipit-source-id: 1cb7df125ad47ccfa5169a10504d588b52eacdf7
2021-10-07 03:43:57 -07:00
Arvin Qin 9c4d6262b3 MOD: add some cpp feature, like distance/norm/inner prod computations (#2036)
Summary:
I want to invoke norm  computations by using CGO, but I find some functions which have been implemented in cpp are not exported in c api, so I commit the PR to solve the problem.

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

Reviewed By: beauby

Differential Revision: D30762172

Pulled By: mdouze

fbshipit-source-id: 097b32f29658c1864bd794734daaef0dd75d17ef
2021-09-06 09:07:12 -07:00
Alexander Andreev f6d2efd1df Cover more types for C_API (#1917)
Summary:
Exported some global variables and statistics.
Supported downcast for IndexIDMap and IndexIDMap2 from faiss::Index
Fixes https://github.com/facebookresearch/faiss/issues/1863

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

Reviewed By: beauby

Differential Revision: D28834039

Pulled By: mdouze

fbshipit-source-id: c1f7739dcdc23055780ebc665082609641dff861
2021-06-08 15:34:05 -07:00