Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 675e699

Browse files
committedMar 25, 2025·
Fix failed tests
1 parent cdc1238 commit 675e699

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "crop_inst.h"
1212
#include "eltwise_inst.h"
1313
#include "gemm_inst.h"
14+
#include "assign_inst.h"
1415
#include "read_value_inst.h"
1516
#include "reshape_inst.h"
1617
#include "permute_inst.h"
@@ -476,6 +477,8 @@ bool crop_in_place_optimization::match(const program_node& node,
476477
return false;
477478
if (user->is_type<loop>() || user->is_type<non_max_suppression>())
478479
return false;
480+
if (user->is_type<read_value>() || user->is_type<assign>())
481+
return false;
479482
// If the input tensor of convolution includes dynamic padding, there is an issue
480483
// where the total size of tensor is not properly calculated and becomes 0
481484
// It causes issue for internal buffer allocation during runtime

‎src/plugins/intel_gpu/src/graph/impls/cpu/assign.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct assign_impl : public typed_primitive_impl<assign> {
5454

5555
stream.wait_for_events(events);
5656

57-
const auto ev_set_memory = variable.get_memory()->copy_from(stream, instance.input_memory());
57+
const auto ev_set_memory = variable.get_memory()->copy_from(stream, instance.input_memory(), 0, 0, variable.get_layout().bytes_count(), true);
5858
variable.set();
5959

6060
return ev_set_memory;

0 commit comments

Comments
 (0)
Please sign in to comment.