Skip to content

Commit

Permalink
initialize CircularQueue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jul 8, 2024
1 parent 237268e commit f70a3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphbolt/src/cache_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ torch::Tensor LruCachePolicy::Replace(torch::Tensor keys) {
}

ClockCachePolicy::ClockCachePolicy(int64_t capacity)
: capacity_(capacity), cache_usage_(0) {
: queue_(capacity), capacity_(capacity), cache_usage_(0) {
TORCH_CHECK(capacity > 0, "Capacity needs to be positive.");
key_to_cache_key_.reserve(capacity);
}
Expand Down

0 comments on commit f70a3a2

Please sign in to comment.