@@ -1357,24 +1357,24 @@ struct AdapterControllerImpl {
13571357 set_lora_tensors (state, lora_var_ids.first , lora_var_ids.second , lora_indices, weight_getters, alpha_only);
13581358 }
13591359
1360- for (const auto & constant_variable_id : constant_variable_ids) {
1361- auto b = constant_variable_id.second .variable_id ;
1362- // variable_info
1363- if (constant_variable_id.first .find (" const" ) != std::string::npos) {
1364- auto a = std::vector<bool >{true };
1365- ov::Tensor if_input_true = ov::Tensor (ov::element::boolean, ov::Shape (1 ), a);
1366- // ov::Tensor if_input_true = ov::Tensor(ov::element::boolean, ov::Shape{1});
1367- size_t lora_index = state_name_to_index.at (b);
1368- // NodePtr node = const_getter[0](constant_variable_id.first)->tensor;
1369- // // auto a = std::dynamic_pointer_cast<ov::op::v0::Constant>(node);
1370- state[lora_index].set_state (if_input_true);
1371- }
1372- size_t lora_index = state_name_to_index.at (b);
1373- NodePtr node = const_getter[0 ](constant_variable_id.first )->tensor ;
1374- auto a = std::dynamic_pointer_cast<ov::op::v0::Constant>(node);
1375- state[lora_index].set_state (a->get_tensor_view ());
1376- // set_lora_tensors(state, constant_variable_id.first, constant_variable_id.second, lora_indices, weight_getters, alpha_only);
1377- }
1360+ // for (const auto& constant_variable_id : constant_variable_ids) {
1361+ // auto b = constant_variable_id.second.variable_id;
1362+ // // variable_info
1363+ // if (constant_variable_id.first.find("const") != std::string::npos) {
1364+ // auto a = std::vector<bool>{true};
1365+ // ov::Tensor if_input_true = ov::Tensor(ov::element::boolean, ov::Shape(1), a);
1366+ // // ov::Tensor if_input_true = ov::Tensor(ov::element::boolean, ov::Shape{1});
1367+ // size_t lora_index = state_name_to_index.at(b);
1368+ // // NodePtr node = const_getter[0](constant_variable_id.first)->tensor;
1369+ // // // auto a = std::dynamic_pointer_cast<ov::op::v0::Constant>(node);
1370+ // state[lora_index].set_state(if_input_true);
1371+ // }
1372+ // size_t lora_index = state_name_to_index.at(b);
1373+ // NodePtr node = const_getter[0](constant_variable_id.first)->tensor;
1374+ // auto a = std::dynamic_pointer_cast<ov::op::v0::Constant>(node);
1375+ // state[lora_index].set_state(a->get_tensor_view());
1376+ // // set_lora_tensors(state, constant_variable_id.first, constant_variable_id.second, lora_indices, weight_getters, alpha_only);
1377+ // }
13781378 }
13791379
13801380 std::vector<LoRAWeight> collect_applicable_tensors (const std::string& lora_name, const std::vector<LoRAWeightGetter>& weight_getters) {
0 commit comments