Skip to content

Commit

Permalink
errors of unit test are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-cv committed Mar 15, 2023
1 parent 607ffb6 commit 698fa68
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/plugins/intel_gpu/src/graph/impls/ocl/resample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ inline std::vector<int32_t> convert_pads(const std::vector<size_t>& pad, size_t
if (pad.empty()) {
new_pad = std::vector<int32_t>(rank, 0);
} else {
for (auto pad : pad) {
new_pad.push_back(static_cast<int32_t>(pad));
for (auto p : pad) {
new_pad.push_back(static_cast<int32_t>(p));
}
if (new_pad.size() > 2)
std::reverse(new_pad.begin() + 2, new_pad.end());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ inline tensor calc_sliding_window_output_range<swor_mode::all>(const tensor& inp
auto stride_x = stride.size() >= 1 ? stride[stride.size() - 1] : 1;

tensor::value_type dilation_z = dilation.size() >= 3 ? static_cast<int32_t>(dilation[dilation.size() - 3]) : 1;
tensor::value_type dilation_y = dilation.size() >= 2 ? static_cast<int32_t>(static_cast<int32_t>(dilation[dilation.size() - 2])) : 1;
tensor::value_type dilation_y = dilation.size() >= 2 ? static_cast<int32_t>(dilation[dilation.size() - 2]) : 1;
tensor::value_type dilation_x = dilation.size() >= 1 ? static_cast<int32_t>(dilation[dilation.size() - 1]) : 1;

auto pad_z = pad.size() >= 3 ? pad[pad.size() - 3] : 0;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/src/graph/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void network::save(cldnn::BinaryOutputBuffer& ob) {
}
}

auto exec_order_size = _exec_order.size();
int exec_order_size = _exec_order.size();
ob << exec_order_size;

for (const auto& p_inst : _exec_order) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static std::string GetInputBlockND(const scatter_nd_update_params& params, size_
block_nd_s[rank] = "1";
size_t input_offset = num * 6;

for (size_t idx = rank - 1; idx >= 0; --idx) {
for (int32_t idx = rank - 1; idx >= 0; --idx) {
block_nd[idx] = input_dims[idx] * block_nd[idx + 1];

size_t dim_offset = idx < 2 ? idx : idx + 6 - rank;
Expand Down

0 comments on commit 698fa68

Please sign in to comment.