Skip to content

Commit

Permalink
Fix build warnning-error in windows.
Browse files Browse the repository at this point in the history
Signed-off-by: hyunback <[email protected]>
  • Loading branch information
hyunback committed Nov 28, 2024
1 parent 94924bc commit 5788c73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/intel_gpu/src/graph/program_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1542,14 +1542,15 @@ void program_node::create_onednn_primitive_attributes(
size_t rank = cldnn::format::dimension(in.format);
auto in_pshape = in.get_partial_shape();
auto out_pshape = get_output_layout().get_partial_shape();
int ones_to_add = 0;
size_t ones_to_add = 0;

if (is_type<fully_connected>()) {
auto prim = this->as<fully_connected>().get_primitive();
if (prim->input_size == in_pshape.size()) {
ones_to_add = std::max(out_pshape.size(), static_cast<size_t>(rank)) - in_pshape.size();
} else {
ones_to_add = in_pshape.size() - prim->input_size;
if (in_pshape.size() > prim->input_size)
ones_to_add = in_pshape.size() - prim->input_size;
}
if (ones_to_add > 0) {
layout new_layout = in;
Expand Down

0 comments on commit 5788c73

Please sign in to comment.