-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GPU] Fix reset output issue #27695
[GPU] Fix reset output issue #27695
Conversation
37b7f8a
to
be2f05e
Compare
4d2ad88
to
e50b408
Compare
@@ -403,6 +403,7 @@ class primitive_inst { | |||
bool _can_share_buffer = true; | |||
bool _is_constant = false; | |||
bool _needs_completion_event = false; | |||
bool _no_execution_prev = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is used only in prepare_primitive & realloc_if_needed, , could you please remove this from member of primitive_inst, and declare it as a local variable in prepare_primitive, and pass it as function argument of realloc_if_neede?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, about the name of the variable, how about prev_execution_skipped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it. please review it again.
} | ||
} | ||
_outputs[0] = nullptr; | ||
_max_output_layout_count[0] = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two are being used here and there. Could you refactor this as a member function of primitive_inst? (e.g., clear_output_memory)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it. please review it again.
e5d821b
to
660a00c
Compare
@@ -47,6 +47,7 @@ void mark_runtime_skippable_nodes::run(program& p) { | |||
!node->is_type<non_max_suppression_gather>()) { | |||
// always to skip, no runtime execution | |||
node->can_be_optimized(true); | |||
node->set_runtime_skippable(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned offline, this is against the original intention of this code block.
Instead, I think we should fix the do_runtime_skip_xx functions to just return when the node is not "runtime_skippable"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I removed this code and used is_runtime_skippable instead of can_be_optimized in do_runtime_skip_xxx.
please review it again. thanks.
…ized out to executed or is skipped
Details:
Tickets: