[IE CLDNN] Fix linear_onnx Interpolate selection (#2769)
This commit is contained in:
parent
1bae540895
commit
ca95240c91
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
@ -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;
|
||||
}
|
||||
|
@ -180,6 +180,8 @@ public:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user