File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ struct t_cluster_placement_primitive {
126
126
t_pb_graph_node* pb_graph_node;
127
127
bool valid;
128
128
float base_cost; /* cost independent of current status of packing */
129
- float incremental_cost; /* cost dependant on current status of packing */
129
+ float incremental_cost; /* cost dependent on current status of packing */
130
130
};
131
131
132
132
#endif
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ static void forward_infer_pattern(t_pb_graph_pin* pb_graph_pin);
47
47
48
48
static void backward_infer_pattern (t_pb_graph_pin* pb_graph_pin);
49
49
50
- static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash (std::unordered_map<std::string, int > pattern_names);
50
+ static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash (const std::unordered_map<std::string, int >& pattern_names);
51
51
52
52
static t_pb_graph_edge* find_expansion_edge_of_pattern (const int pattern_index,
53
53
const t_pb_graph_node* pb_graph_node);
@@ -346,7 +346,7 @@ static void backward_infer_pattern(t_pb_graph_pin* pb_graph_pin) {
346
346
* Allocates memory for models and loads the name of the packing pattern
347
347
* so that it can be identified and loaded with more complete information later
348
348
*/
349
- static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash (std::unordered_map<std::string, int > pattern_names) {
349
+ static std::vector<t_pack_patterns> alloc_and_init_pattern_list_from_hash (const std::unordered_map<std::string, int >& pattern_names) {
350
350
std::vector<t_pack_patterns> nlist (pattern_names.size ());
351
351
352
352
for (const auto & curr_pattern : pattern_names) {
You can’t perform that action at this time.
0 commit comments