Skip to content

Commit 1c01300

Browse files
committed
Update simpleRL_move_generator.cpp
Fixed errors from Code Formatting Check in the CI
1 parent 3510bd8 commit 1c01300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/place/simpleRL_move_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ void SoftmaxAgent::set_action_prob() {
245245
// normalize all the action probabilities to guarantee the sum(all action probs) = 1
246246
float sum_prob = std::accumulate(action_prob_.begin(), action_prob_.end(), 0.0);
247247
std::transform(action_prob_.begin(), action_prob_.end(), action_prob_.begin(),
248-
[sum_prob, this](float x){ return x + ((1.0 - sum_prob) / this->num_available_actions_); });
249-
248+
[sum_prob, this](float x) { return x + ((1.0 - sum_prob) / this->num_available_actions_); });
249+
250250
// calculate the accumulative action probability of each action
251251
// e.g. if we have 5 actions with equal probability of 0.2, the cumm_action_prob will be {0.2,0.4,0.6,0.8,1.0}
252252
float accum = 0;

0 commit comments

Comments
 (0)