Skip to content

Commit 4d4cae8

Browse files
committed
removing manual_move entry from avail_moves data structure
1 parent 549de31 commit 4d4cae8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vpr/src/place/move_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ enum class e_move_type {
2727
W_MEDIAN,
2828
CRIT_UNIFORM,
2929
FEASIBLE_REGION,
30-
MANUAL_MOVE,
31-
NUMBER_OF_MOVES,
30+
NUMBER_OF_AUTO_MOVES,
31+
MANUAL_MOVE = NUMBER_OF_AUTO_MOVES
3232
};
3333

3434
enum class e_create_move {

vpr/src/place/simpleRL_move_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static float scaled_clipped_exp(float x) { return std::exp(std::min(1000000 * x,
1515
* *
1616
* */
1717
SimpleRLMoveGenerator::SimpleRLMoveGenerator(std::unique_ptr<SoftmaxAgent>& agent) {
18-
avail_moves.resize((int)e_move_type::NUMBER_OF_MOVES);
18+
avail_moves.resize((int)e_move_type::NUMBER_OF_AUTO_MOVES);
1919

2020
avail_moves[(int)e_move_type::UNIFORM] = std::make_unique<UniformMoveGenerator>();
2121
avail_moves[(int)e_move_type::MEDIAN] = std::make_unique<MedianMoveGenerator>();
@@ -29,7 +29,7 @@ SimpleRLMoveGenerator::SimpleRLMoveGenerator(std::unique_ptr<SoftmaxAgent>& agen
2929
}
3030

3131
SimpleRLMoveGenerator::SimpleRLMoveGenerator(std::unique_ptr<EpsilonGreedyAgent>& agent) {
32-
avail_moves.resize((int)e_move_type::NUMBER_OF_MOVES);
32+
avail_moves.resize((int)e_move_type::NUMBER_OF_AUTO_MOVES);
3333

3434
avail_moves[(int)e_move_type::UNIFORM] = std::make_unique<UniformMoveGenerator>();
3535
avail_moves[(int)e_move_type::MEDIAN] = std::make_unique<MedianMoveGenerator>();

0 commit comments

Comments
 (0)