Skip to content

Commit

Permalink
[IE CLDNN] Fix linear_onnx Interpolate selection (openvinotoolkit#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
echuraev authored and mryzhov committed Dec 15, 2020
1 parent d996dbd commit e05d435
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ParamsKey ResampleKernelRef::GetSupportedKey() const {
k.EnableReampleType(ResampleType::CAFFE_BILINEAR_INTERP);
k.EnableReampleType(ResampleType::BILINEAR_INTERP);
k.EnableReampleType(ResampleType::CUBIC);
k.EnableReampleType(ResampleType::LINEAR_ONNX);
return k;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2016-2019 Intel Corporation
// Copyright (c) 2016-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -325,6 +325,12 @@ void ParamsKey::EnableReampleType(ResampleType a) {
case ResampleType::BILINEAR_INTERP:
key.restrict.val.dedicated.resample.bilinear_interp = 1;
break;
case ResampleType::CUBIC:
key.restrict.val.dedicated.resample.cubic = 1;
break;
case ResampleType::LINEAR_ONNX:
key.restrict.val.dedicated.resample.linear_onnx = 1;
break;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ class ParamsKey {
uint32_t nearest_neighbor : 1;
uint32_t caffe_bilinear_interp : 1;
uint32_t bilinear_interp : 1;
uint32_t cubic : 1;
uint32_t linear_onnx : 1;
} resample;
struct reorder_t {
uint32_t winograd : 1;
Expand Down

0 comments on commit e05d435

Please sign in to comment.