Skip to content

Commit f119072

Browse files
author
MohamedElgammal
committed
skip updating the RL agent table and moves stats in case of manual move
1 parent 88e7b1e commit f119072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/place/place.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ static e_move_result try_swap(const t_annealing_state* state,
13511351
create_move_outcome = move_generator.propose_move(blocks_affected, proposed_action, rlim, placer_opts, criticalities);
13521352
}
13531353

1354-
if (proposed_action.logical_blk_type_index != -1) { //if the agent proposed the block type, then collect the block type stat
1354+
if (proposed_action.logical_blk_type_index != -1 && !manual_move_enabled) { //if the agent proposed the block type, then collect the block type stat
13551355
++move_type_stat.blk_type_moves[proposed_action.logical_blk_type_index][(int)proposed_action.move_type];
13561356
}
13571357
LOG_MOVE_STATS_PROPOSED(t, blocks_affected);
@@ -1575,7 +1575,7 @@ static e_move_result try_swap(const t_annealing_state* state,
15751575
// move generator, so we should not calculate the reward and update
15761576
// the move generators status since this outcome is not a direct
15771577
// consequence of the move generator
1578-
if (!router_block_move) {
1578+
if (!manual_move_enabled && !router_block_move) {
15791579
move_generator.calculate_reward_and_process_outcome(move_outcome_stats, delta_c, timing_bb_factor);
15801580
}
15811581

0 commit comments

Comments
 (0)