diff options
author | Marcin Junczys-Dowmunt <marcinjd@microsoft.com> | 2021-08-04 09:00:06 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <marcinjd@microsoft.com> | 2021-08-04 09:00:06 +0300 |
commit | d124ca9f5b14458fdd110a96aee06e42178f4b3e (patch) | |
tree | 08cf9fde50cf1a9487d30a871c86bca09c2793cc | |
parent | 4ff2ef189e3d6cca8ab2169f15f1f26739bb7884 (diff) |
allow float32 conversion in QS interface
-rw-r--r-- | src/microsoft/quicksand.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microsoft/quicksand.cpp b/src/microsoft/quicksand.cpp index 099ce180..a439197b 100644 --- a/src/microsoft/quicksand.cpp +++ b/src/microsoft/quicksand.cpp @@ -302,7 +302,8 @@ bool convertModel(std::string inputFile, std::string outputFile, int32_t targetP Type targetPrecType = (Type) targetPrec; if (targetPrecType == Type::packed16 || targetPrecType == Type::packed8avx2 - || targetPrecType == Type::packed8avx512) { + || targetPrecType == Type::packed8avx512 + || (targetPrecType == Type::float32 && addLsh)) { // only allow non-conversion to float32 if we also use the LSH graph->packAndSave(outputFile, configStr.str(), targetPrecType); std::cerr << "Conversion Finished." << std::endl; } else { |