Skip to content

Commit 74fd82d

Browse files
committed
Remove zero fill
1 parent bee84d8 commit 74fd82d

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/plugins/intel_gpu/src/graph/include/reorder_inst.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ class typed_primitive_inst<reorder> : public typed_primitive_inst_base<reorder>
109109

110110
private:
111111
void on_execute() override;
112-
void update_padding_fill_flag();
113112

114113
bool _req_reinterpr = false;
115-
bool _needs_padding_fill = false;
116114
};
117115

118116
using reorder_inst = typed_primitive_inst<reorder>;

src/plugins/intel_gpu/src/graph/reorder.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "reorder_inst.h"
55
#include "primitive_type_base.h"
66
#include "intel_gpu/runtime/error_handler.hpp"
7-
#include "intel_gpu/runtime/stream.hpp"
87
#include "json_object.h"
98
#include "intel_gpu/primitives/convolution.hpp"
109
#include "intel_gpu/primitives/eltwise.hpp"
@@ -236,8 +235,6 @@ reorder_inst::typed_primitive_inst(network& network, reorder_node const& node) :
236235
if (is_dynamic())
237236
return;
238237

239-
update_padding_fill_flag();
240-
241238
auto input_layout = node.get_input_layout();
242239
auto output_layout = node.get_output_layout();
243240
if (input_layout.is_static() && output_layout.is_static()) {
@@ -268,32 +265,7 @@ reorder_inst::typed_primitive_inst(network& network, reorder_node const& node) :
268265
}
269266
}
270267

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-
283268
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-
}
297269
update_output_memory();
298270
}
299271

0 commit comments

Comments
 (0)