|
4 | 4 | #include "reorder_inst.h" |
5 | 5 | #include "primitive_type_base.h" |
6 | 6 | #include "intel_gpu/runtime/error_handler.hpp" |
7 | | -#include "intel_gpu/runtime/stream.hpp" |
8 | 7 | #include "json_object.h" |
9 | 8 | #include "intel_gpu/primitives/convolution.hpp" |
10 | 9 | #include "intel_gpu/primitives/eltwise.hpp" |
@@ -236,8 +235,6 @@ reorder_inst::typed_primitive_inst(network& network, reorder_node const& node) : |
236 | 235 | if (is_dynamic()) |
237 | 236 | return; |
238 | 237 |
|
239 | | - update_padding_fill_flag(); |
240 | | - |
241 | 238 | auto input_layout = node.get_input_layout(); |
242 | 239 | auto output_layout = node.get_output_layout(); |
243 | 240 | if (input_layout.is_static() && output_layout.is_static()) { |
@@ -268,32 +265,7 @@ reorder_inst::typed_primitive_inst(network& network, reorder_node const& node) : |
268 | 265 | } |
269 | 266 | } |
270 | 267 |
|
271 | | -void reorder_inst::update_padding_fill_flag() { |
272 | | - _needs_padding_fill = false; |
273 | | - auto output_layout = _impl_params->get_output_layout(0); |
274 | | - auto fmt = output_layout.format; |
275 | | - for (auto& [dim, bs] : fmt.block_sizes()) { |
276 | | - if (dim == 1) { |
277 | | - _needs_padding_fill = (output_layout.feature() % bs != 0); |
278 | | - break; |
279 | | - } |
280 | | - } |
281 | | -} |
282 | | - |
283 | 268 | void reorder_inst::on_execute() { |
284 | | - if (!can_be_optimized()) { |
285 | | - if (get_flag(ExecutionFlags::SHAPE_CHANGED)) |
286 | | - update_padding_fill_flag(); |
287 | | - |
288 | | - if (_needs_padding_fill && _outputs[0]) { |
289 | | - auto& stream = get_network().get_stream(); |
290 | | - const bool out_of_order_queue = stream.get_queue_type() == QueueTypes::out_of_order; |
291 | | - auto dep_events = out_of_order_queue |
292 | | - ? std::vector<event::ptr>{stream.enqueue_marker(_impl_params->dep_events)} |
293 | | - : std::vector<event::ptr>{}; |
294 | | - add_dep_event(_outputs[0]->fill(stream, dep_events)); |
295 | | - } |
296 | | - } |
297 | 269 | update_output_memory(); |
298 | 270 | } |
299 | 271 |
|
|
0 commit comments