Skip to content

Commit

Permalink
Fix failed test cases for variable_test_common
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-k-park committed Dec 22, 2024
1 parent 6b7190a commit abddffc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plugins/intel_gpu/src/graph/impls/cpu/read_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ struct read_value_impl : public typed_primitive_impl<read_value> {
} else {
variable.get_memory()->fill(stream);
}
auto user_inst = instance.get_user_insts().front();
if (!(user_inst->get_node().is_type<assign>() || user_inst->get_node().is_type<kv_cache>()) &&
!instance.get_dependant_initializer_insts().empty()) {
variable.set();
if (!instance.get_user_insts().empty()) {
auto user_inst = instance.get_user_insts().front();
if (!(user_inst->get_node().is_type<assign>() || user_inst->get_node().is_type<kv_cache>()) &&
!instance.get_dependant_initializer_insts().empty()) {
variable.set();
}
}
}

Expand Down

0 comments on commit abddffc

Please sign in to comment.