Skip to content

Commit a655f9b

Browse files
committed
Add comment
1 parent 8b61c47 commit a655f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/intel_gpu/src/graph/graph_optimizer/mark_shape_of_subgraphs.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ static bool is_shape_of_subgraph_root(program_node& node) {
2323
return true;
2424
}
2525

26+
// Allow input_layout to be the root of the shape_of subgraph if it's 'max_context_len'
27+
// input of PagedAttention, which can be used as a shape calculation flow source in some
28+
// models like Qwen and Qwen2
2629
if (node.is_type<input_layout>()) {
2730
const auto& users = node.get_users();
2831
for (const auto& user : users) {

0 commit comments

Comments
 (0)