From 17f23ddbf3fe804f93d2d17939740e6522284720 Mon Sep 17 00:00:00 2001 From: Zhenglong Li Date: Sat, 19 Dec 2020 10:22:29 +0800 Subject: [PATCH] Fix compile error --- mindspore/ccsrc/minddata/dataset/api/vision.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/minddata/dataset/api/vision.cc b/mindspore/ccsrc/minddata/dataset/api/vision.cc index ac32a60a24..ff7a03d790 100644 --- a/mindspore/ccsrc/minddata/dataset/api/vision.cc +++ b/mindspore/ccsrc/minddata/dataset/api/vision.cc @@ -690,12 +690,12 @@ Status DvppDecodeResizeCropOperation::ValidateParams() { MS_LOG(ERROR) << err_msg; RETURN_STATUS_SYNTAX_ERROR(err_msg); } - if (*min_element(crop_.begin(), crop_.end()) < 32 || *max_element(crop_begin(), crop_.end()) > 2048) { + if (*min_element(crop_.begin(), crop_.end()) < 32 || *max_element(crop_.begin(), crop_.end()) > 2048) { std::string err_msg = "Dvpp module supports crop image with resolution in range [32, 2048], got Crop Parameters: "; MS_LOG(ERROR) << err_msg << crop_; RETURN_STATUS_SYNTAX_ERROR(err_msg); } - if (*min_element(resize_.begin(), resize_.end()) < 32 || *max_element(resize_begin(), resize_.end()) > 2048) { + if (*min_element(resize_.begin(), resize_.end()) < 32 || *max_element(resize_.begin(), resize_.end()) > 2048) { std::string err_msg = "Dvpp module supports resize image with resolution in range [32, 2048], got Crop Parameters: "; MS_LOG(ERROR) << err_msg << resize_;