Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmang committed Oct 13, 2023
1 parent 261d47e commit 7c42c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class sparse_parameters
void share(size_t /* length */);
#endif

public:
private:
// This must be mutable because the const operator[] must be able to intialize default weights to return.
mutable details::weight_map _map;
uint64_t _weight_mask; // (stride*(1 << num_bits) -1)
Expand Down
2 changes: 1 addition & 1 deletion vowpalwabbit/core/src/array_parameters_sparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ VW::weight* VW::sparse_parameters::get_or_default_and_get(size_t i) const
return iter->second.get();
}

VW::weight* sparse_parameters::get_impl(size_t i) const {
VW::weight* VW::sparse_parameters::get_impl(size_t i) const {
static VW::weight default_value = 0.0f;

uint64_t index = i & _weight_mask;
Expand Down

0 comments on commit 7c42c29

Please sign in to comment.