Skip to content

Commit

Permalink
Remove check-fail that priorities are >= 0.
Browse files Browse the repository at this point in the history
#135

PiperOrigin-RevId: 574426193
Change-Id: I61ee2677b92365c3fb972ea39e8542a9a964ed98
  • Loading branch information
acassirer authored and copybara-github committed Oct 18, 2023
1 parent 7e9ee1a commit bfa91b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions reverb/cc/selectors/prioritized.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <cmath>
#include <cstddef>

#include "absl/random/distributions.h"
#include "absl/random/random.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "reverb/cc/platform/logging.h"
Expand Down Expand Up @@ -56,9 +54,7 @@ PrioritizedSelector::PrioritizedSelector(double priority_exponent,
: priority_exponent_(priority_exponent),
capacity_(std::pow(2, 17)),
sum_tree_(capacity_),
rng_(seed) {
REVERB_CHECK_GE(priority_exponent_, 0);
}
rng_(seed) {}

absl::Status PrioritizedSelector::Delete(Key key) {
const size_t last_index = key_to_index_.size() - 1;
Expand Down

0 comments on commit bfa91b5

Please sign in to comment.