-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor param to replace JsonType internal #290
base: main
Are you sure you want to change the base?
Conversation
ed76d97
to
9d1a9a6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #290 +/- ##
=========================================
+ Coverage 0 49.61% +49.61%
=========================================
Files 0 353 +353
Lines 0 32899 +32899
Branches 0 4136 +4136
=========================================
+ Hits 0 16323 +16323
- Misses 0 15717 +15717
- Partials 0 859 +859 |
IOParameterPtr io_parameter_{nullptr}; | ||
}; | ||
|
||
using FlattenDataCellParameterPtr = std::shared_ptr<FlattenDataCellParameter>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: FlattenDataCellParameterPtr -> FlattenDataCellParamPtr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/io/memory_block_io_parameter.h
Outdated
uint64_t block_size_{}; | ||
}; | ||
|
||
using MemoryBlockIOParameterPtr = std::shared_ptr<MemoryBlockIOParameter>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Name to long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
bool use_reorder_{false}; | ||
uint64_t ef_construction_{400}; | ||
uint64_t build_thread_count_{100}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the default value to the value in options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to do one thing in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine
@@ -19,92 +19,60 @@ | |||
#include <utility> | |||
|
|||
#include "catch2/catch_template_test_macros.hpp" | |||
#include "catch2/generators/catch_generators.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use <> to include external libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
uint64_t ef_construction_{400}; | ||
uint64_t build_thread_count_{100}; | ||
|
||
std::string name_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct's public variables do not end with an _
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to distinguish between local variables and member variables
src/data_cell/flatten_interface.h
Outdated
@@ -18,6 +18,7 @@ | |||
#include <nlohmann/json.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to include the header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
#include "graph_datacell_parameter.h" | ||
|
||
#include "fmt/format-inl.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
#include "catch2/catch_template_test_macros.hpp" | ||
#include "catch2/generators/catch_generators.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
#include "quantizer_parameter.h" | ||
|
||
#include "fmt/format-inl.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
explicit QuantizerParameter(std::string name); | ||
|
||
private: | ||
std::string name_{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -17,6 +17,7 @@ | |||
#include <cstdint> | |||
#include <cstring> | |||
|
|||
#include "fp32_quantizer_parameter.h" | |||
#include "index/index_common_param.h" | |||
#include "inner_string_params.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "src/index/inner_string_params.h"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need src
|
||
#include "fp32_quantizer_parameter.h" | ||
|
||
#include "inner_string_params.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
5d38e65
to
e04138f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d4f7e42
to
dd80315
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
8ff01de
to
c3eb8bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: LHT129 <[email protected]>
No description provided.