Condition fix in Resize operator (#6193)

This commit is contained in:
Hariharan Seshadri 2020-12-22 13:35:31 +05:30 committed by GitHub
parent fc27074bae
commit 04b3e0ef5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
}