mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Condition fix in Resize operator (#6193)
This commit is contained in:
parent
fc27074bae
commit
04b3e0ef5e
1 changed files with 2 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ class UpsampleBase {
|
|||
? info.GetAttrOrDefault<std::string>("coordinate_transformation_mode", "half_pixel")
|
||||
: "asymmetric";
|
||||
coordinate_transform_mode_ = StringToCoordinateTransformationMode(coordinate_transform_mode_name);
|
||||
if (opset >= 13) {
|
||||
LOGS(onnxruntime::logging::LoggingManager::DefaultLogger(), WARNING)
|
||||
if (opset >= 13 && coordinate_transform_mode_ == TF_HALF_PIXEL_FOR_NN) {
|
||||
LOGS_DEFAULT(WARNING)
|
||||
<< "`tf_half_pixel_for_nn` is deprecated since opset 13, "
|
||||
<< "yet this opset " << opset << " model uses the deprecated attribute";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue